Skip to content

Commit a6daf6f

Browse files
committed
add doc param name. test=develop
1 parent 518559e commit a6daf6f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

paddle/fluid/API.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ paddle.fluid.layers.merge_selected_rows (ArgSpec(args=['x', 'name'], varargs=Non
216216
paddle.fluid.layers.get_tensor_from_selected_rows (ArgSpec(args=['x', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '7ffc849e71f31dfe29030ff94e662de6'))
217217
paddle.fluid.layers.lstm (ArgSpec(args=['input', 'init_h', 'init_c', 'max_len', 'hidden_size', 'num_layers', 'dropout_prob', 'is_bidirec', 'is_test', 'name', 'default_initializer', 'seed'], varargs=None, keywords=None, defaults=(0.0, False, False, None, None, -1)), ('document', 'd5e6c494ac35100e2ed4d4bd9a1ed932'))
218218
paddle.fluid.layers.shuffle_channel (ArgSpec(args=['x', 'group', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '2fa6782d43d02ae64482d21235a82949'))
219-
paddle.fluid.layers.temporal_shift(ArgSpec(args=['x', 'seg_num', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '2fa6782d43d02ae64482d21235a82949'))
219+
paddle.fluid.layers.temporal_shift (ArgSpec(args=['x', 'seg_num', 'shift_ratio', 'name'], varargs=None, keywords=None, defaults=(0.25, None)), ('document', 'fe4481fb31363b09cfdd228fc6776ddf'))
220220
paddle.fluid.layers.py_func (ArgSpec(args=['func', 'x', 'out', 'backward_func', 'skip_vars_in_backward_input'], varargs=None, keywords=None, defaults=(None, None)), ('document', '8404e472ac12b4a30a505d3d3a3e5fdb'))
221221
paddle.fluid.layers.psroi_pool (ArgSpec(args=['input', 'rois', 'output_channels', 'spatial_scale', 'pooled_height', 'pooled_width', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '1546136806fef5c08f6918544bd9151d'))
222222
paddle.fluid.layers.teacher_student_sigmoid_loss (ArgSpec(args=['input', 'label', 'soft_max_up_bound', 'soft_max_lower_bound'], varargs=None, keywords=None, defaults=(15.0, -15.0)), ('document', '2f6ff96864054a31aa4bb659c6722c99'))

paddle/fluid/operators/temporal_shift_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ class TemporalShiftOpMaker : public framework::OpProtoAndCheckerMaker {
7777
"shift_ratio",
7878
"The shift ratio of the channels, the first :attr:`shift_ratio` part "
7979
"of channels will be shifted by -1 along the temporal dimension, "
80-
"and the second :attr:`shift_ratio` part of channels will be shifted by "
81-
"1 along the temporal dimension. Default 0.25.")
80+
"and the second :attr:`shift_ratio` part of channels will be shifted "
81+
"by 1 along the temporal dimension. Default 0.25.")
8282
.SetDefault(0.25);
8383

8484
AddComment(R"DOC(

python/paddle/fluid/layers/nn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10276,6 +10276,7 @@ def temporal_shift(x, seg_num, shift_ratio=0.25, name=None):
1027610276
x(Variable): ${x_comment}
1027710277
seg_num(int): ${seg_num_comment}
1027810278
shift_ratio(float): ${shift_ratio_comment}
10279+
name (str, default None): The name of this layer.
1027910280
1028010281
Returns:
1028110282
out(Variable): The temporal shifting result is a tensor variable with the

0 commit comments

Comments
 (0)