Skip to content

Commit 30763d7

Browse files
authored
[API Compatiblity] update Log2 doc (PaddlePaddle#7417)
* add log2 docs * fix * fix * fix
1 parent ead4f14 commit 30763d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/api/paddle/log2_cn.rst

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

6-
.. py:function:: paddle.log2(x, name=None)
6+
.. py:function:: paddle.log2(x, name=None, *, out)
77
88
99
@@ -15,11 +15,15 @@ Log2 激活函数(计算底为 2 的对数)
1515
\\Out=log_2x\\
1616
1717
18+
.. note::
19+
别名支持: 参数名 ``input`` 可替代 ``x``;
20+
1821
参数
1922
:::::::::
2023
- **x** (Tensor) – 该 OP 的输入为 Tensor。数据类型为 int32,int64,float16,bfloat16,float32, float64, complex64 或 complex128。
24+
``别名:input``
2125
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
22-
26+
- **out** (Tensor,可选) - 输出的结果。该参数为仅关键字参数,默认值为 None。
2327
返回
2428
:::::::::
2529
Tensor,Log2 算子底为 2 对数输出,数据类型与输入一致。

0 commit comments

Comments
 (0)