Returning a tensor value with command
a, b, c, d, e = tf.unstack(x, axis=1)
then when I try to display the value of a
all I get is:
<tf.Tensor 'unstack_4:0' shape=(5,) dtype=int32>
How can I see which are the values of this tensor?
I'm pretty new to TensorFlow.
CodePudding user response:
The variables unpacked from the result of tf.unstack
are still just tensors. As such, you can use tf.print(a)
(tf.Print()
if you're still on TensorFlow v1) to print these tensor values.
Documentation: https://www.tensorflow.org/api_docs/python/tf/print