提交 75466f4e 编写于 作者: Y Yu Yang

Merge branch 'feature/clean_mnist_v2' into feature/tester

......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册