【发布时间】:2018-04-23 10:02:59
【问题描述】:
我是张量流的初学者。我运行了一个简单的脚本如下:
import tensorflow as tf
a =tf.constant(2)
b = tf.constant(3)
c = tf.add(a,b)
with tf.Session() as sess:
writer = tf.summary.FileWriter('./graphs',sess.graph)
print sess.run(c)
writer.close()
保存此 python 文件后,我在终端中运行它。有使用 2 个事件文件创建的文件夹图。然后我在终端上运行以下命令:
tensorboard --logdir="./graphs"
我收到以下错误:
tensorboard: command not found
请帮忙。提前致谢。
【问题讨论】:
标签: python-2.7 machine-learning tensorflow deep-learning tensorboard