Skip to content

Commit c349458

Browse files
committed
change drop_last defalut value
1 parent 431491a commit c349458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/paddle/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__all__ = ['batch']
1616

1717

18-
def batch(reader, batch_size, drop_last=False):
18+
def batch(reader, batch_size, drop_last=True):
1919
"""
2020
Create a batched reader.
2121

python/paddle/v2/minibatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__all__ = ['batch']
1616

1717

18-
def batch(reader, batch_size, drop_last=False):
18+
def batch(reader, batch_size, drop_last=True):
1919
"""
2020
Create a batched reader.
2121

0 commit comments

Comments
 (0)