TensorFlow可视化
参考文章链接
https://blog.csdn.net/fa928464158/article/details/77935539
https://www.jianshu.com/p/63672bb761cf
过程
1 可视化实现代码
'''
实现tensorboard可视化
'''
import tensorflow as tf
# 构造grah
graph = tf.Graph()
with graph.as_default():
#全局变量
with tf.name_scope("variables"):
# 记录数据流图运行次数的Variables的对象
global_step = tf.Variable(0,dtype=tf.int32,trainable=False,name="global_step")
# 记录所有输出随时间累加和的Variables对象
total_output = tf.Variable(0.0,dtype=tf.float32,trainable=False,name="total_output")
# 主要变换的op
with tf.name_scope("transformation"):
# 独立的输入层
with tf.n