From c34945800e8d68fddd681595dc12ea4b541b1342 Mon Sep 17 00:00:00 2001 From: chengduoZH Date: Tue, 12 Jun 2018 19:32:36 +0800 Subject: [PATCH] change drop_last defalut value --- python/paddle/batch.py | 2 +- python/paddle/v2/minibatch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/batch.py b/python/paddle/batch.py index d48c54fcbb6..3c6a53db3c2 100644 --- a/python/paddle/batch.py +++ b/python/paddle/batch.py @@ -15,7 +15,7 @@ __all__ = ['batch'] -def batch(reader, batch_size, drop_last=False): +def batch(reader, batch_size, drop_last=True): """ Create a batched reader. diff --git a/python/paddle/v2/minibatch.py b/python/paddle/v2/minibatch.py index d48c54fcbb6..3c6a53db3c2 100644 --- a/python/paddle/v2/minibatch.py +++ b/python/paddle/v2/minibatch.py @@ -15,7 +15,7 @@ __all__ = ['batch'] -def batch(reader, batch_size, drop_last=False): +def batch(reader, batch_size, drop_last=True): """ Create a batched reader. -- GitLab