ree*_*106 7 google-cloud-platform tensorflow tensorboard google-cloud-ml-engine
我正在为在本地模式下运行的ml引擎实验加载张量板,并收到以下警告:
"Found more than one graph event per run, or there was a metagraph containing a graph_def, as well as one or more graph events. Overwriting the graph with the newest event.
W0825 19:26:12.435613 Reloader event_accumulator.py:311] Found more than one metagraph event per run. Overwriting the metagraph with the newest event."
Run Code Online (Sandbox Code Playgroud)
最初,我怀疑这是因为我没有清除自己的信息--logdir=$OUTPUT_PATH(如其他帖子所建议的-但是,即使我执行了操作,rm -rf $OUTPUT_PATH/*我仍然会在本地火车上收到此错误。该错误是否表明我的图表中存在更大的问题?
看起来您可能已经看过这篇文章,但没有更多信息,这是我可以提供的最佳信息:
这是一个已知问题,TensorBoard 不喜欢在同一目录中编写来自不同运行的多个事件文件。如果您每次运行都使用新的子目录(新的超参数=新的子目录),它将被修复。
您可能会无意中在同一目录中写入多个事件文件(例如训练和评估?)。
tf.estimator.EstimatorSpec另外,请确保您在 时返回适当的值modes.EVAL。从人口普查样本来看:
if mode == Modes.EVAL:
labels_one_hot = tf.one_hot(
label_indices_vector,
depth=label_values.shape[0],
on_value=True,
off_value=False,
dtype=tf.bool
)
eval_metric_ops = {
'accuracy': tf.metrics.accuracy(label_indices, predicted_indices),
'auroc': tf.metrics.auc(labels_one_hot, probabilities)
}
return tf.estimator.EstimatorSpec(
mode, loss=loss, eval_metric_ops=eval_metric_ops)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8989 次 |
| 最近记录: |