BUG: cifar data reader开启cycle参数存在死循环且效率低下
-
版本、环境信息: 1)PaddlePaddle版本:paddle 1.5 post97
-
复现信息: 在使用
paddle.dataset.cifar.train10()时添加cycle=True参数,程序会卡死,ctrl+c中断发现卡死在reader中 断点调试发现如下
一个epoch迭代结束后,迭代器没有重置,无法继续迭代,程序不停的在while True内空跑。
另外,建议reader进行修改,每次都做extractfile感觉效率太低
cycle这个参数本身应该就是while True死循环的。如果您想cache数据,您可以尝试用paddle.reader.cache把数据cache在内存中。
cycle这个参数本身应该就是while True死循环的。如果您想cache数据,您可以尝试用
paddle.reader.cache把数据cache在内存中。
@sneaxiy 本身死循环不是问题,问题是他没有在取数据
感谢您的反馈,这应该是个bug。
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。