From eee1320b873f4dcfd78857d80aa06a99cca90916 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 28 Feb 2017 14:55:09 +0800 Subject: [PATCH] Change code style --- python/paddle/v2/reader/decorator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/v2/reader/decorator.py b/python/paddle/v2/reader/decorator.py index d83e2f4577..5687f118ce 100644 --- a/python/paddle/v2/reader/decorator.py +++ b/python/paddle/v2/reader/decorator.py @@ -201,7 +201,7 @@ def batched(reader, batch_size): :return: the batched reader. """ - def __impl__(): + def batched_reader(): r = reader() batch = [] for instance in r: @@ -212,4 +212,4 @@ def batched(reader, batch_size): if batch: yield batch - return __impl__ + return batched_reader -- GitLab