1
我一直在努力学习tensorboard(从tensorflow(从github分叉,使用最新版本)以及每当得到上述错误我使用'标量'或'直方图'函数 为什么标量函数被指向tensorflow.python.summary.summary?(它不应该是tensorflow.python.summary?)如果有人可以帮忙,那会很棒!在这儿附着的代码:AttributeError:模块'tensorflow.python.summary.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'
tensorflow 0.8.0,(git pull可能失败了,我马上更新它) – user3868971