import tensorflow as tf
with tf.name_scope('graph') as scope:
matrix1 = tf.constant([[3., 3.]], name='matrix1') #1 row by 2 column
matrix2 = tf.constant([[2.], [2.]], name='matrix2') # 2 row by 1 column
product = tf.matmul(matrix1, matrix2, name='product')
sess = tf.Session()
writer = tf.summary.FileWriter(r"F:\Pycharm\venv\Scripts\logs", sess.graph)
init = tf.global_variables_initializer()
sess.run(init)
Pycharm上运行以上程序没有问题,在cmd目录窗口下,cd到我的路径F:\Pycharm\venv\Scripts下,输入:tensorboard --logdir=logs --host=127.0.0.1
运行也没问题,给了网址:TensorBoard 1.11.0 at http://127.0.0.1:6006 (Press CTRL+C to quit)
可是进去后:No scalar data was found.
求告知~有没有大佬啊。。。网上说的方法试了呀,方法一:进到上一层目录:Scripts 然后--logdir=logs还是没有用啊
方法二:把路径“F:\Pycharm\venv\Scripts”中的反斜杠\改成//,还是不行啊....
输入绝对路径
cmd中,tensorboard --logdir=F:\Pycharm\venv\Scripts\logs --host=127.0.0.1 还是一样的结果。。。。。