forked from mindspore-Ecosystem/mindspore
!47126 添加ops.hypot公式
Merge pull request !47126 from DavidFFFan/code_docs_add_rewrite_doc
This commit is contained in:
commit
6f4ad04658
|
@ -6,6 +6,9 @@ mindspore.ops.hypot
|
|||
按元素计算以输入Tensor为直角边的三角形的斜边。
|
||||
两个输入的shape需要支持广播,数据类型应为:float32、float64。
|
||||
|
||||
.. math::
|
||||
out_i = \sqrt{x_i^2 + other_i^2}
|
||||
|
||||
参数:
|
||||
- **x** (Tensor) - 第一个输入Tesnor。
|
||||
- **other** (Tensor) - 第二个输入Tesnor。
|
||||
|
|
|
@ -4322,11 +4322,14 @@ def orgqr(x, tau):
|
|||
|
||||
|
||||
def hypot(x, other):
|
||||
"""
|
||||
r"""
|
||||
Computes hypotenuse of input tensors element-wise as legs of a right triangle.
|
||||
The shape of two inputs should be broadcastable, and data type of them should be
|
||||
one of: float32, float64
|
||||
|
||||
.. math::
|
||||
out_i = \sqrt{x_i^2 + other_i^2}
|
||||
|
||||
Args:
|
||||
x (Tensor): The first input tensor.
|
||||
other (Tensor): The second input tensor.
|
||||
|
|
Loading…
Reference in New Issue