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

标签 tensorflow google-cloud-platform tensorboard google-cloud-ml-engine

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

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

相关文章:

python - 如何在Google Colab上下载TensorFlow训练好的模型?

python - 从 object_detection.protos 导入 string_int_label_map_pb2 ModuleNotFoundError :

python - target_vocab_size 在 tfds.features.text.SubwordTextEncoder.build_from_corpus 方法中究竟是什么意思?

bash - 我们如何从GCP编写器(DAG)执行Bash脚本(在Compute Engine VM中存在)?

python - Tensorflow:使用clip_by_norm或clip_by_global_norm时如何确定clip_norm的值?

python - Tensorboard语法错误: invalid syntax

Tensorboard 在端口 6006 上无法正常运行

python - Tensorflow 对象检测培训最佳实践问题

python - 通过 Firestore 触发事件简化 python 中的字典

python - Google Pub/Sub Subscriber 一段时间后收不到消息