【发布时间】: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 个文件。
【问题讨论】: