Skip to content

Commit eee1320

Browse files
committed
Change code style
1 parent 559efcd commit eee1320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/v2/reader/decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def batched(reader, batch_size):
201201
:return: the batched reader.
202202
"""
203203

204-
def __impl__():
204+
def batched_reader():
205205
r = reader()
206206
batch = []
207207
for instance in r:
@@ -212,4 +212,4 @@ def __impl__():
212212
if batch:
213213
yield batch
214214

215-
return __impl__
215+
return batched_reader

0 commit comments

Comments
 (0)