1.启动tensorboard
tensorboard --logdir="./logs" --port 6006
2.显示graph
import tensorflow as tf a=tf.constant(2) b=tf.constant(3) x=tf.add(a,b) sess = tf.Session() writer=tf.summary.FileWriter(‘./logs‘,sess.graph) writer.close()
3.
时间: 2024-10-12 21:44:26