我一直在尝试研究tensorboard (从tensorflow (从github派生出来,也使用最新版本),每当我使用‘标量’或‘直方图’函数时,就会得到上面的错误。为什么标量函数指向tensorflow.python.summary.summary?(它不应该是tensorflow.python.summary吗?)如果有人能帮上忙就太好了!我在这里附加了代码:
import tensorflow as tf
x = tf.Variable(tf.random_normal(5,5))
tf.summary.scalar('input', x)输出结果为:
Traceback (most recent call last):
File "tensorboardetest.py", line 4, in <module>
tf.summary.scalar('input', x)
AttributeError: module 'tensorflow.python.summary.summary' has no attribute 'scalar'发布于 2016-12-20 23:14:03
您实际上使用的不是最新版本的TensorFlow。:)
https://stackoverflow.com/questions/41236090
复制相似问题