1
$\begingroup$

I have a tensor that is of the size (19,19,5,80). I want to print out all the elements in it but if I use print(XXX.eval()), most of the elements will end up as ellipsis. How can I print all of them out?

$\endgroup$
  • $\begingroup$ You really don't want to see it.. $\endgroup$ – Aditya May 29 '18 at 19:40
1
$\begingroup$

Basically what you want to do is showing the full numpy array in jupyter notebook. Use the following code:

import numpy
numpy.set_printoptions(threshold=numpy.nan)

Then run your code and see the entire activation map.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.