Windows下 tensorboard显示No graph definition files were found的问题解决

转自:https://blog.csdn.net/pingtouge7/article/details/97520297

Windows下 tensorboard显示No graph definition files were found的问题解决

tensorboard的调用:

sess = tf.Session()
writer = tf.summary.FileWriter(“logs/”, sess.graph)
graph对应的文件写入到了目录logs中

我的错误

本人使用的是pycharm,直接将生成的文件open in terminal,输入tensorboard --logdir=logs,然后打开我的对应网站http://zzy-pc:6006/,出现了no graph definition files were found的问题

解决方法

一定要cd到logs这个文件夹的上一级,其他会出现No graph definition files were found.问题
我用pycharm直接将 生成的文件open in terminal相当于直接cd到了logs文件夹,所以出现了错误

注意:尽量使用 goole chrome浏览器,毕竟tf是谷歌出的

原文地址:https://www.cnblogs.com/chuqianyu/p/14221343.html