0
我有使用tensorflow一个下面的代码:tensorflow总结 - 写多个图形
g1 = tf.Graph()
g2 = tf.Graph()
with g1.as_default():
a = tf.constant(3)
b = tf.constant(4)
c = tf.add(a, b)
with g2.as_default():
x = tf.constant(5)
y = tf.constant(2)
z = tf.multiply(x, y)
writer = tf.summary.FileWriter("./graphs", g1)
writer = tf.summary.FileWriter("./graphs", g2)
writer.close()
而且在tensorboard,我得到这个:
但它缺少第一个图表。有没有办法绘制两个图?