I have the following code which uses TensorFlow. After I reshape a list, it says
AttributeError: \'Tensor\' object has no attribute \'shape\'
import tensorflow as tf
and replace train_data.shape with tf.Session.run(tf.rank(train_data))
train_data.shape
tf.Session.run(tf.rank(train_data))