提交 bda05dc3 编写于 作者: Q qiaolongfei

reset yield_num after one pass

上级 198689c3
......@@ -522,6 +522,7 @@ def fake(reader, data_num):
while fake_reader.yield_num < data_num:
yield fake_reader.data
fake_reader.yield_num += 1
fake_reader.yield_num = 0
fake_reader.data = None
fake_reader.yield_num = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册