diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index 832af14a18b8ac..30ce55f009e935 100755 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -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. @@ -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] """