【问题标题】:Error:- tensorboard: command not found . However, while typing locate tensorboard, I am getting the the location错误:-张量板:找不到命令。但是,在输入定位张量板时,我得到了位置
【发布时间】: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


    【解决方案1】:

    正如您提到的,您正在获取tensorboard 位置,请尝试使用您的本地路径运行您的命令,例如

    /your/path/tensorboard --logdir="./graphs"
    

    希望对你有帮助,祝你编码愉快

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-15
      • 2018-06-17
      • 2020-08-15
      • 2020-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-04
      相关资源
      最近更新 更多