From 28a559de1279bf2c3d95650534bf3cb56087d11d Mon Sep 17 00:00:00 2001 From: Bai Yifan Date: Sat, 28 Sep 2019 09:32:19 +0800 Subject: [PATCH] fix PyReader._iterable usage, test=develop (#20045) --- python/paddle/fluid/contrib/slim/core/compressor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/contrib/slim/core/compressor.py b/python/paddle/fluid/contrib/slim/core/compressor.py index 9507d560268..c076a0764fe 100644 --- a/python/paddle/fluid/contrib/slim/core/compressor.py +++ b/python/paddle/fluid/contrib/slim/core/compressor.py @@ -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: -- GitLab