[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a helpful python Tensor __repr__ that describes type, shape, etc. #460

Closed
pronobis opened this issue Dec 9, 2015 · 0 comments
Closed
Assignees
Labels
type:feature Feature requests

Comments

@pronobis
Copy link
pronobis commented Dec 9, 2015

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]])'
@vrv 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
@vrv vrv assigned mrry Dec 14, 2015
@mrry mrry closed this as completed in 1b0b524 Dec 15, 2015
@aselle aselle added type:feature Feature requests and removed enhancement labels Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature Feature requests
Projects
None yet
Development

No branches or pull requests

4 participants