gpt4 book ai didi

tensorflow 每次运行发现多个图形事件

转载 作者:行者123 更新时间:2023-12-02 18:48:14 26 4
gpt4 key购买 nike

我正在为在本地模式下运行的机器学习引擎实验加载张量板,并收到以下警告:

"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."

最初,我怀疑这是因为我没有清除我的 --logdir=$OUTPUT_PATH (正如其他帖子所建议的那样 - 但是,即使我执行 rm -rf $OUTPUT_PATH/* 对于本地火车,我仍然收到此错误。此错误是否表明我的图中存在更大的问题?

最佳答案

看起来您可能已经遇到过 this post ,但没有更多信息,这是我能提供的最好信息:

This is a known issue, TensorBoard doesn't like it when you write multiple event files from separate runs in the same directory. It will be fixed if you use a new subdirectory for every run (new hyperparameters = new subdirectory).

您可能无意中在同一目录中写入了多个事件文件(例如训练和评估?)。

此外,请确保在 modes.EVAL 下返回适当的 tf.estimator.EstimatorSpec。来自 census sample :

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)

关于tensorflow 每次运行发现多个图形事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45890560/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com