From 91e8299144051a13015d4e04bd95becc5a6bb2e6 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 8 Oct 2018 20:04:48 +0800 Subject: [PATCH] fake reader support python3.x test=develop --- python/paddle/reader/decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/reader/decorator.py b/python/paddle/reader/decorator.py index 2c1ae57472f..b2ef9f75809 100644 --- a/python/paddle/reader/decorator.py +++ b/python/paddle/reader/decorator.py @@ -533,7 +533,7 @@ class Fake(object): def __call__(self, reader, data_num): def fake_reader(): if self.data is None: - self.data = reader().next() + self.data = next(reader()) while self.yield_num < data_num: yield self.data self.yield_num += 1 -- GitLab