No dashboards are active for the current data set. tensorboard可視化遇見

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("logs/", sess.graph)

    init = tf.global_variables_initializer()

    sess.run(init)

新生成的那個文件再這個python文件的文件夾下的logs子文件夾中

之後 再cmd 中輸入

 

上面這一句一定要是在logs上一級文件夾下進行輸入

然後在瀏覽器中輸入  http:/zyr:6006 就可以看見啦

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章