My TensorBoard isn’t showing any data! What’s wrong?
The first thing to do is ensure that TensorBoard is properly loading data from the correct directory. Launch tensorboard --logdir=DIRECTORY_PATH --debug and look for output of the form
INFO:tensorflow:TensorBoard path_to_run is: {'DIRECTORY_PATH': None}
Verify that the DIRECTORY_PATH TensorBoard is looking at is the path you expect. (Note: There's a known issue where TensorBoard does not handle paths starting in ~ properly).
If you're loading from the proper path, make sure that event files are present. TensorBoard will recursively walk its logdir, it's fine if the data is nested under a subdirectory. Try running the command:
find DIRECTORY_PATH | grep tfevents
If you have at least one result, then TensorBoard should be able to load data.
Finally, let's make sure that the event files actually have data. Run tensorboard in inspector mode to inspect the contents of your event files.
tensorboard --inspect --logdir=DIRECTORY_PATH
If after running this procedure, it's still not working, please file an issue on GitHub. It will be much easier for us to debug it if you provide an event file that isn't working.
writer = tf.summary.FileWriter(“E:/tf_log”, sess.graph)
writer = tf.summary.FileWriter(“C:/tf_log”, sess.graph)
從E盤改到C盤然後就出數據了,不知道哪裏的原因。。。。。。。。。。