import tensorflow as tf
sess = tf.InteractiveSession()
a = tf.Variable(0, name="a")
b = tf.Variable(1, name="b")
c = tf.add(a,b)
sess.run(tf.global_variables_initializer())
summary_writer = tf.summary.FileWriter("~/tools/tfboardlog", sess.graph)
vim ~/.bash_profile
alias tfboard='tensorboard --logdir="~/tools/tfboardlog"'
source ~/.bash_profile
tfboard启动成功!
导入其他graph,选择*.pbtxt文件即可