Skip to content

Commit 7ddbbcb

Browse files
committed
doc: refine API and doc
1 parent b081363 commit 7ddbbcb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

paddle/fluid/API.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ paddle.fluid.layers.crop ArgSpec(args=['x', 'shape', 'offsets', 'name'], varargs
164164
paddle.fluid.layers.rank_loss ArgSpec(args=['label', 'left', 'right', 'name'], varargs=None, keywords=None, defaults=(None,))
165165
paddle.fluid.layers.prelu ArgSpec(args=['x', 'mode', 'param_attr', 'name'], varargs=None, keywords=None, defaults=(None, None))
166166
paddle.fluid.layers.flatten ArgSpec(args=['x', 'axis', 'name'], varargs=None, keywords=None, defaults=(1, None))
167-
paddle.fluid.layers.sequence_enumerate ArgSpec(args=['input', 'win_size', 'pad_value', 'name'], varargs=None, keywords=None, defaults=(None,))
168167
paddle.fluid.layers.sequence_mask ArgSpec(args=['x', 'maxlen', 'dtype', 'name'], varargs=None, keywords=None, defaults=(None, 'int64', None))
169168
paddle.fluid.layers.stack ArgSpec(args=['x', 'axis'], varargs=None, keywords=None, defaults=(0,))
170169
paddle.fluid.layers.unstack ArgSpec(args=['x', 'axis', 'num'], varargs=None, keywords=None, defaults=(0, None))
170+
paddle.fluid.layers.sequence_enumerate ArgSpec(args=['input', 'win_size', 'pad_value', 'name'], varargs=None, keywords=None, defaults=(0, None))
171171
paddle.fluid.layers.data ArgSpec(args=['name', 'shape', 'append_batch_size', 'dtype', 'lod_level', 'type', 'stop_gradient'], varargs=None, keywords=None, defaults=(True, 'float32', 0, VarType.LOD_TENSOR, True))
172172
paddle.fluid.layers.open_recordio_file ArgSpec(args=['filename', 'shapes', 'lod_levels', 'dtypes', 'pass_num', 'for_parallel'], varargs=None, keywords=None, defaults=(1, True))
173173
paddle.fluid.layers.open_files ArgSpec(args=['filenames', 'shapes', 'lod_levels', 'dtypes', 'thread_num', 'buffer_size', 'pass_num', 'is_test'], varargs=None, keywords=None, defaults=(None, None, 1, None))

paddle/fluid/operators/sequence_enumerate_op.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class SequenceEnumerateOpMaker : public framework::OpProtoAndCheckerMaker {
6363
Sequence Enumerate Operator.
6464
6565
Generate a new sequence for the input index sequence, which enumerates all the
66-
sub-sequences with length win_size of the input.
67-
The enumerated sequence has the same 1st dimension with variable input, and
68-
the 2nd dimension is win_size, padded by pad_value if necessary in generation.
66+
sub-sequences with length `win_size` of the input.
67+
The enumerated sequence has the same 1st dimension with variable `input`, and
68+
the 2nd dimension is `win_size`, padded by `pad_value` if necessary in generation.
6969
7070
Examples:
7171
Case 1:

python/paddle/fluid/layers/nn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5653,9 +5653,9 @@ def flatten(x, axis=1, name=None):
56535653
def sequence_enumerate(input, win_size, pad_value=0, name=None):
56545654
"""
56555655
Generate a new sequence for the input index sequence, which enumerates all the
5656-
sub-sequences with length win_size of the input.
5657-
The enumerated sequence has the same 1st dimension with variable input, and
5658-
the 2nd dimension is win_size, padded by pad_value if necessary in generation.
5656+
sub-sequences with length `win_size` of the input.
5657+
The enumerated sequence has the same 1st dimension with variable `input`, and
5658+
the 2nd dimension is `win_size`, padded by `pad_value` if necessary in generation.
56595659
56605660
Examples:
56615661
Case 1:

0 commit comments

Comments
 (0)