在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')
我做错了什么?