Skip to content

Commit 1a55b5f

Browse files
author
chengduozh
committed
refine data_feeder doc
test=release/1.2
1 parent 69ffcc4 commit 1a55b5f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

python/paddle/fluid/data_feeder.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,13 @@ def decorate_reader(self,
258258
multiple mini-batches. Each mini-batch will be feed on each device.
259259
260260
Args:
261-
reader(fun): the input data.
262-
multi_devices(bool): the number of places. Default None.
263-
num_places(int): the number of places. Default None.
264-
drop_last(bool): the number of places. Default None.
261+
reader(function): the reader is the function which can generate data.
262+
multi_devices(bool): whether to use multiple devices or not.
263+
num_places(int): if the multi_devices is True, you can specify the number
264+
of GPU to use, if 'num_places' is None, the function will use all the
265+
GPU of the current machine. Default None.
266+
drop_last(bool): whether to drop the last batch if the
267+
size of the last batch is less than batch_size. Default True.
265268
266269
Returns:
267270
dict: the result of conversion.

0 commit comments

Comments
 (0)