Tensorboard中Graph的显示

Tensorboard中Graph的显示

在tf.Session().run之前:
tf.summary.FileWriter("D:/program/logs/", tf.Session().graph)
路径必须是英文路径
在终端中cd进入log所在的目录,输入指令:
tensorboard --logdir logs
显示如下:
这里写图片描述
打开Google Chrome浏览器,(与 tensorboard 兼容的浏览器是 “Google Chrome”. 使用其他的浏览器不保证所有内容都能正常显示.)输入:
http://DESKTOP-G1M1LAL:6006
也可以输入:
http://0.0.0.0:6006

http://localhost:6006
(如果使用 http://0.0.0.0:6006 网址打不开的朋友们, 请使用 http://localhost:6006, 大多数朋友都是这个问题.)
然后就可以看到tensorboard中的Graph显示:
这里写图片描述

参考链接:
1.https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/4-1-tensorboard1/
2.https://blog.csdn.net/shwan_ma/article/details/79022674

猜你喜欢

转载自blog.csdn.net/m0_37393277/article/details/80793693
今日推荐