Skip to content

Commit 3eaab3f

Browse files
committed
fix data doc
test=release/1.3
1 parent 71a8e1b commit 3eaab3f

File tree

1 file changed

+4
-1
lines changed
  • python/paddle/fluid/layers

1 file changed

+4
-1
lines changed

python/paddle/fluid/layers/io.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def data(name,
5656
5757
Args:
5858
name(str): The name/alias of the function
59-
shape(list): Tuple declaring the shape.
59+
shape(list): Tuple declaring the shape. If :code:`append_batch_size` is
60+
True and there is no -1 inside :code:`shape`, it should be
61+
considered as the shape of the each sample. Otherwise, it
62+
should be considered as the shape of the batched data.
6063
append_batch_size(bool):
6164
1. If true, it prepends -1 to the shape.
6265
For example if shape=[1], the resulting shape is [-1, 1].

0 commit comments

Comments
 (0)