Tensorboard图表:未启用{计算时间,内存}着色

时间:2017-10-09 19:16:12

标签: tensorboard

在Compens time和Memory单选按钮的Tensorboard Graphs选项卡上,我看到错误:

"Coloring by {Compute time, Memory} is only enabled if the RunMetadata proto is passed to the FileWriter when a specific session is run"

以下是我的代码的摘录:

run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)
run_metadata = tf.RunMetadata()
writer = tf.summary.FileWriter(FLAGS.log_dir + '\\test')
writer.add_graph(sess.graph)

feed_dict = {
test_data_node: image,
test_labels_node: label,
phase_train: False
}

dense_prediction, im = sess.run([logits, pred], feed_dict=feed_dict, options = run_options, run_metadata = run_metadata)
writer.add_run_metadata(run_metadata, 'run')

我做错了什么?

0 个答案:

没有答案