【发布时间】:2019-10-10 21:17:40
【问题描述】:
我已经实现了一个非常简单的计算图,并且我能够在 tensorboard 上正确地对其进行可视化。
但是,当我运行图表时,我无法看到变量的数值
import tensorflow as tf
a = tf.constant(5, name = 'a')
b = tf.constant(5, name = 'b')
c = a + b
print(a)
print(b)
print(c)
sess = tf.Session()
print(sess.run(c))
with tf.Session() as sess:
writer = tf.summary.FileWriter('c:/users/gpapari/documents/python', sess.graph)
writer.close()
也许我错过了什么?
【问题讨论】:
标签: tensorboard