From 186919016bc82ee798410e3e82fc699024c0d3d7 Mon Sep 17 00:00:00 2001 From: Zhen Wang Date: Wed, 18 Jul 2018 20:53:04 +0800 Subject: [PATCH] Change the default value of the parameter 'drop_last' in 'paddle.batch' to False. --- python/paddle/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/batch.py b/python/paddle/batch.py index 3c6a53db3c..d48c54fcbb 100644 --- a/python/paddle/batch.py +++ b/python/paddle/batch.py @@ -15,7 +15,7 @@ __all__ = ['batch'] -def batch(reader, batch_size, drop_last=True): +def batch(reader, batch_size, drop_last=False): """ Create a batched reader. -- GitLab