Python 3.6.4 如何启动TensorBoard?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41672744/article/details/79925580
import tensorflow as tf
a = tf.constant(10,name="a")
b = tf.constant(90,name="b")
y = tf.Variable(a+b*2,name='y')
model = tf.global_variables_initializer()
with tf.Session() as session:
     merged = tf.summary.merge_all()
     writer = tf.summary.FileWriter("/tmp/tensorflowlogs",session.graph)
     session.run(model)
     print(session.run(y))

2.在Anaconda prompt 输入 tensorboard --logdir=

3. 在浏览器打开prompt的网址


猜你喜欢

转载自blog.csdn.net/qq_41672744/article/details/79925580