Skip to content

Commit

Permalink
fix doc output dtype, fix Equation
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoshe committed Jan 9, 2024
1 parent baed47b commit 59df646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/tensor/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -7065,7 +7065,7 @@ def copysign(x, y, name=None):
.. math::
copysign(x_{i},y_{i})=\left\{\begin{matrix}
& -|x_{i}| & if \space y_{i} <= 0.0\\
& -|x_{i}| & if \space y_{i} <= -0.0\\
& |x_{i}| & if \space y_{i} >= 0.0
\end{matrix}\right.
Expand All @@ -7075,7 +7075,7 @@ def copysign(x, y, name=None):
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
Returns:
out (Tensor), the output tensor. The data type is float64.
out (Tensor), the output tensor. The data type is the same as the input tensor.
Examples:
Expand Down

0 comments on commit 59df646

Please sign in to comment.