Skip to content

Commit 3bd8056

Browse files
authored
[API Compatibility No.13、75] Add param alias for hypot and hypot_ (#7851)
1 parent c41d753 commit 3bd8056

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docs/api/paddle/hypot_cn.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
hypot
44
-------------------------------
55

6-
.. py:function:: paddle.hypot(x, y, name=None)
6+
.. py:function:: paddle.hypot(x, y, name=None, *, out=None)
77
88
99
`hypot` 函数对于给定直角三角形直角边 `x`, `y` 实现斜边长度求解的计算;
@@ -13,9 +13,13 @@ hypot
1313
1414
参数
1515
::::::::::
16-
- **x** (Tensor) – 输入 Tensor,它的数据类型可以是 float32,float64, int32, int64。
17-
- **y** (Tensor) – 输入 Tensor,它的数据类型可以是 float32,float64,int32, int64。
16+
- **x** (Tensor) – 输入 Tensor,它的数据类型可以是 float32,float64,int32,int64。别名 ``input``
17+
- **y** (Tensor) – 输入 Tensor,它的数据类型可以是 float32,float64,int32,int64。别名 ``other``
1818
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为 None。
19+
20+
关键字参数
21+
:::::::::
22+
- **out** (Tensor,可选) - 输出 Tensor,若不为 ``None``,计算结果将保存在该 Tensor 中,默认值为 ``None``。
1923
返回
2024
::::::::::
2125
- ``out`` (Tensor):一个 n-d Tensor。如果 x、y 具有不同的形状并且是可广播的,则得到的张量形状是广播后 x 和 y 的形状。如果 x、y 具有相同的形状,则其形状与 x 和 y 相同。

0 commit comments

Comments
 (0)