admin管理员组

文章数量:1612151

第一种情况,路径不对

测试代码

import tensorflow as tf

# 定义一个简单的计算图,实现向量加法的操作。
input1 = tf.constant([1.0, 2.0, 3.0], name = 'input1')
input2 = tf.Variable(tf.random_uniform([3]), name = 'input2')
output = tf.add_n([input1, input2], name = 'add')

# 生成一个写日志的writer,并将当前的tensorflow计算图写入日志。
# tensorflow提供了多种写日志文件的API
writer = tf.summary.FileWriter('G:/tf', tf.get_default_graph())
writer.close()

在G盘下会生成tf文件夹,只需要

只需要如下就可以。

 

第二种情况是因为tensorflow版本的问题,只有graphs显示,其他的显示没有

本文标签: 错误情况ActivedashboardsTensorBoard