TensorBoard在win10下的使用实例

Linux废物说:真香!

Posted by viewsetting on October 19, 2018

示例代码:

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import numpy as np
import tensorflow as tf

a = tf.constant(3.0, dtype=tf.float32)
b = tf.constant(4.0) # also tf.float32 implicitly
total = a + b
print(a)
print(b)
print(total)
writer = tf.summary.FileWriter(r'E:\Python\Test',tf.get_default_graph())
writer.close()

1539912067565

运行TensorBoard

1539912169718

打开浏览器

1539912245848

复制了地址:计算机 名(即localhost) +6006端口 ,就能愉快玩耍了。