Advertisement

Tensorboard可视化

阅读量:

Tensorboard具备将构建完成的神经网络结构进行可视化展示的功能,以下内容将详细介绍如何借助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)
    
    
    

全部评论 (0)

还没有任何评论哟~