TTypes<T>::Flat tensorflow::Tensor::flat()
Return the tensor data as an Eigen::Tensor of the data type and a specified shape.
These methods allow you to access the data with the dimensions and sizes of your choice. You do not need to know the number of dimensions of the Tensor to call them. However, they CHECK that the type matches and the dimensions requested creates an Eigen::Tensor with the same number of elements as the tensor.
Example:
Tensor my_ten(...built with Shape{planes: 4, ro