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

fix-python-transpose
Bai Yifan 5 years ago committed by GitHub
parent 01b9d07963
commit 28a559de12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save