【问题标题】:After 500 steps Tensorflow fail to write summaries500 步后 Tensorflow 无法编写摘要
【发布时间】:2016-11-15 08:32:45
【问题描述】:

我尝试在 tensorflow 中进行训练;我使用以下代码将结果写入张量板:

   test_writer.add_summary(summary_strTest, i)
   train_writer.add_summary(summary_str, i)
   train_writer.flush()
   test_writer.flush()

500 步后开始显示此错误(编写摘要):

tensorflow/core/util/events_writer.cc:97] Write failed because file could not be opened.
E tensorflow/core/util/events_writer.cc:63] Could not open events file: ./logs/train/events.out.tfevents.1468372504.al: Resource exhausted: ./logs/train/

我看到由于内存不足导致资源耗尽,但我有超过 2GB 的可用空间

然后在 100 步之后,当它必须写入检查点时,它崩溃了。

在终端的张量板服务器上,我收到以下消息:

WARNING:tensorflow:Found more than one graph event per run. Overwriting the graph with the newest event.

我不知道为什么它在 500 步后无法写入文件。我的日志文件夹、测试、火车在运行后各有 505 个文件。

【问题讨论】:

    标签: tensorflow tensorboard


    【解决方案1】:

    所以解决方案是减少批次的大小。我将它减少到 100,然后写入文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-20
      • 2016-04-05
      • 2020-09-16
      • 2017-02-24
      • 2018-08-22
      • 1970-01-01
      • 2018-02-26
      • 2016-10-26
      相关资源
      最近更新 更多