You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently repr(tf.placeholder(tf.float32, shape=(3,1))) gives:
'<tensorflow.python.framework.ops.Tensor object at 0x7fa0e9f99b10>'
This is not very informative and it's what you see as the output for interactive shell (IPython). In contrast to that, repr(np.array([[1,2]])) will give us nice:
'array([[1, 2]])'
The text was updated successfully, but these errors were encountered:
vrv
changed the title
Shouldn't repr of a Tensor be more informative?
Make a helpful python Tensor __repr__ that describes type, shape, etc.
Dec 9, 2015
Currently
repr(tf.placeholder(tf.float32, shape=(3,1)))
gives:This is not very informative and it's what you see as the output for interactive shell (IPython). In contrast to that,
repr(np.array([[1,2]]))
will give us nice:The text was updated successfully, but these errors were encountered: