Suppose I have a Tensorflow tensor. How do I get the dimensions (shape) of the tensor as integer values? I know there are two methods, tensor.get_shape() and
tensor.get_shape()
Another way to solve this is like this:
tensor_shape[0].value
This will return the int value of the Dimension object.