Skip to content

Commit

Permalink
add, test=document_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxicoding committed Nov 6, 2020
1 parent 70a7d20 commit 92bf4cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/tensor/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ def remainder(x, y, name=None):
Mod two tensors element-wise. The equation is:
.. math::
out = x / y
out = x \% y
**Note**:
``paddle.remainder`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` .
``paddle.mod`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` .
Args:
x (Tensor): the input tensor, it's data type should be float32, float64, int32, int64.
Expand All @@ -405,7 +405,7 @@ def remainder(x, y, name=None):
x = paddle.to_tensor([2, 3, 8, 7])
y = paddle.to_tensor([1, 5, 3, 3])
z = paddle.remainder(x, y)
z = paddle.mod(x, y)
print(z) # [0, 3, 2, 1]
"""
Expand Down

1 comment on commit 92bf4cf

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.