Skip to content

Commit 7c5097b

Browse files
authored
[Docathon][Add Inplace CN Doc No.41、42] (#7133)
* Create renorm__cn.rst * Create t__cn.rst * Update Overview_cn.rst * Update Overview_cn.rst * Update renorm__cn.rst * Update Overview_cn.rst
1 parent 1150afd commit 7c5097b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

docs/api/paddle/Overview_cn.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ tensor 线性代数相关原位(inplace)版本
451451
:header: "API 名称", "API 功能"
452452
:widths: 10, 30
453453

454+
" :ref:`paddle.renorm_ <cn_api_paddle_renorm_>` ", "Inplace 版本的 renorm API,对输入 x 采用 Inplace 策略"
455+
" :ref:`paddle.t_ <cn_api_paddle_t_>` ", "Inplace 版本的 t API,对输入 input 采用 Inplace 策略"
454456
" :ref:`paddle.tril_ <cn_api_paddle_tril_>` ", "Inplace 版本的 tril API,对输入 x 采用 Inplace 策略"
455457
" :ref:`paddle.triu_ <cn_api_paddle_triu_>` ", "Inplace 版本的 triu API,对输入 x 采用 Inplace 策略"
456458
" :ref:`paddle.trunc_ <cn_api_paddle_trunc_>` ", "Inplace 版本的 trunc API,对输入 x 采用 Inplace 策略"

docs/api/paddle/renorm__cn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _cn_api_paddle_renorm_:
2+
3+
renorm\_
4+
-------------------------------
5+
6+
.. py:function:: paddle.renorm_(x, p, axis, max_norm)
7+
8+
Inplace 版本的 :ref:`cn_api_paddle_renorm` API,对输入 x 采用 Inplace 策略。
9+
10+
更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。
11+
12+
.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3

docs/api/paddle/t__cn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _cn_api_paddle_t_:
2+
3+
t\_
4+
-------------------------------
5+
6+
.. py:function:: paddle.t_(input, name=None)
7+
8+
Inplace 版本的 :ref:`cn_api_paddle_t` API,对输入 `input` 采用 Inplace 策略。
9+
10+
更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。
11+
12+
.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3

0 commit comments

Comments
 (0)