未验证 提交 28a559de 编写于 作者: B Bai Yifan 提交者: GitHub

fix PyReader._iterable usage, test=develop (#20045)

上级 01b9d079
......@@ -195,7 +195,7 @@ class Context(object):
cached_id)
if isinstance(reader, Variable) or (isinstance(reader, PyReader) and
(not reader._iterable)):
(not reader.iterable)):
reader.start()
try:
while True:
......@@ -486,7 +486,7 @@ class Compressor(object):
if isinstance(context.train_reader, Variable) or (
isinstance(context.train_reader,
PyReader) and (not context.train_reader._iterable)):
PyReader) and (not context.train_reader.iterable)):
context.train_reader.start()
try:
while True:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册