First run the following code (change the path according to your own requirements)
1 writer = tf.summary.FileWriter("G:/tensorflow/graph", tf.get_default_graph())
Then add the following code in the last
1 writer.close()
After this run will be more of the following files in your path
Then in my case:
cmd cd to the directory stored on a
Entry
1 tensorboard --logdir=graph
The browser then enter http: // DESKTOP-PNCQDJF: 6006 Web site to provide this entry
This pit is the easiest step of course is running encountered listed below
遇坑1.OSError: [Errno 22] Invalid argument
First find manager.py file path: XXX \ Site-Packages Standard Package \ tensorboard \ manager.py (python library file storage folder)
Edit the file manager.py line 51
. 1 # (dt - datetime.datetime.fromtimestamp (0)) total_seconds ()),. 2 # line to the following line S comment capitalized . 3 . 4 dt.strftime ( " % S " )),
In case of pit 2. Enter the URL unreachable
原因很简单 就是该ip没有索引到对应目录
网址输入如下
1 localhost:6006
解决 ;