【发布时间】:2018-03-22 13:17:25
【问题描述】:
每当我尝试打印时,我总是得到截断的结果
import tensorflow as tf
import numpy as np
np.set_printoptions(threshold=np.nan)
tensor = tf.constant(np.ones(999))
tensor = tf.Print(tensor, [tensor])
sess = tf.Session()
sess.run(tensor)
如您所见,我遵循了在 Print full value of tensor into console or write to file in tensorflow 上找到的指南
但输出很简单
...\core\kernels\logging_ops.cc:79] [1 1 1...]
我想查看完整的张量,谢谢。
【问题讨论】:
标签: numpy tensorflow