diff --git a/paddle/fluid/operators/elementwise_op.h b/paddle/fluid/operators/elementwise_op.h index b666dc40b6330c7b84b76db85d8826eeb7ea8c54..3876d26bb39846ff8cae095cb14a366090526a30 100644 --- a/paddle/fluid/operators/elementwise_op.h +++ b/paddle/fluid/operators/elementwise_op.h @@ -94,7 +94,7 @@ For example: shape(X) = (2, 3, 4, 5), shape(Y) = (,) shape(X) = (2, 3, 4, 5), shape(Y) = (5,) - shape(X) = (2, 3, 4, 5), shape(Y) = (4, 5) + shape(X) = (2, 3, 4, 5), shape(Y) = (4, 5), with axis=-1(default) or axis=2 shape(X) = (2, 3, 4, 5), shape(Y) = (3, 4), with axis=1 shape(X) = (2, 3, 4, 5), shape(Y) = (2), with axis=0 shape(X) = (2, 3, 4, 5), shape(Y) = (2, 1), with axis=0 diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 35b1e799c3da0b0df4cc3797970fdb0cd2ba0d4c..dc4d18b78991db7f9318aba43d03e6e2a92abff4 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -1409,7 +1409,7 @@ def sequence_pool(input, pool_type): def sequence_first_step(input): """ - This function get the first step of sequence. + This function gets the first step of sequence. .. code-block:: text @@ -1442,7 +1442,7 @@ def sequence_first_step(input): def sequence_last_step(input): """ - This function get the last step of sequence. + This function gets the last step of sequence. .. code-block:: text