我尝试使用tensorboard来使用DNN可视化图像分类器.我非常确定目录路径是正确的,但是没有显示数据.当我尝试
tensorboard --inspect --logdir='PATH/'
返回时:在logdir'PATH /'中找不到任何事件文件
我想我的编码一定有问题.
图形
batch_size = 500
graph = tf.Graph()
with graph.as_default():
# Input data. For the training data, we use a placeholder that will be fed
# at run time with a training minibatch.
with tf.name_scope('train_input'):
tf_train_dataset = tf.placeholder(tf.float32,
shape=(batch_size, image_size * image_size),
name = 'train_x_input')
tf_train_labels = tf.placeholder(tf.float32, shape=(batch_size, num_labels),
name = 'train_y_input')
with tf.name_scope('validation_input'):
tf_valid_dataset = tf.constant(valid_dataset, name = 'valid_x_input')
tf_test_dataset = tf.constant(test_dataset, name = 'valid_y_input')
# Variables.
with tf.name_scope('layer'):
with tf.name_scope('weights'):
weights …Run Code Online (Sandbox Code Playgroud)