1

I have a 1D Tensor.

So when I call

print(session.run(labels))

I get [0, 1, 0 ... , 0 1 0]

It's a list of about 1500 values, how do I print the entire list without writing a loop?

poetryrocksalot
  • 697
  • 2
  • 10
  • 19

1 Answers1

1

Printing session.run() will output as a numpy array.

You can set the print option as follows:

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

I found the related answer from this stackoverflow question

poetryrocksalot
  • 697
  • 2
  • 10
  • 19