【问题标题】:Tensorboard issues with loading graph加载图的张量板问题
【发布时间】:2017-09-07 10:37:40
【问题描述】:

我正在尝试让 tensorboard 简单地向我展示我的计算图,而不会生成其他摘要。

我正在使用以下代码

import tensorflow as tf
tf.reset_default_graph()

a = tf.add(1, 2,)
b = tf.multiply(a, 3)
c = tf.add(4, 5,)
d = tf.multiply(c, 6,)
e = tf.multiply(4, 5,)
f = tf.div(c, 6,)
g = tf.add(b, d)
h = tf.multiply(g, f)

with tf.Session() as sess:
    writer = tf.summary.FileWriter("output", tf.get_default_graph())
    print(sess.run(h))
    writer.close()

然后在命令行中,从我存储“输出”文件夹的文件夹开始,我使用以下命令:

$: tensorboard --logdir = output/

然而,Tensorboard 告诉我没有图表.... 非常感谢您的帮助。

【问题讨论】:

  • 添加不带空格的logdir参数:tensorboard --logdir=output/.

标签: python tensorflow deep-learning tensorboard


【解决方案1】:

程序不希望--logdir = <logdir> 中的等号字符= 之间有空格。您必须像这样调用 Tensorboard:

tensorboard --logdir=output/

或者完全不使用=

tensorboard --logdir output/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-17
    • 2020-01-03
    • 2011-09-18
    相关资源
    最近更新 更多