Skip to content

Commit 1869190

Browse files
committed
Change the default value of the parameter 'drop_last' in 'paddle.batch' to False.
1 parent 79d797f commit 1869190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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=True):
18+
def batch(reader, batch_size, drop_last=False):
1919
"""
2020
Create a batched reader.
2121

0 commit comments

Comments
 (0)