Skip to content

Commit 534b497

Browse files
[Docathon][Add Inplace CN Doc No.43] (#7120)
* add transpose_-cn * overview fix * using precommit to fix * roolback hackathon_cn
1 parent 5fc232d commit 534b497

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/api/paddle/Overview_cn.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ tensor 元素操作相关原位(inplace)版本
523523
" :ref:`paddle.scatter_ <cn_api_paddle_scatter_>` ", "Inplace 版本的 scatter API,对输入 x 采用 Inplace 策略 "
524524
" :ref:`paddle.squeeze_ <cn_api_paddle_squeeze_>` ", "Inplace 版本的 squeeze API,对输入 x 采用 Inplace 策略"
525525
" :ref:`paddle.unsqueeze_ <cn_api_paddle_unsqueeze_>` ", "Inplace 版本的 unsqueeze API,对输入 x 采用 Inplace 策略"
526+
" :ref:`paddle.transpose_ <cn_api_paddle_transpose_>` ", "Inplace 版本的 transpose API,对输入 x 采用 Inplace 策略"
526527

527528
.. einsum:
528529

docs/api/paddle/transpose__cn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _cn_api_paddle_transpose_:
2+
3+
transpose\_
4+
-------------------------------
5+
6+
.. py:function:: paddle.transpose_(x,perm,name=None)
7+
8+
Inplace 版本的 :ref:`cn_api_paddle_transpose` API。原位操作(Inplace)即在原 Tensor 上保存操作结果。
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)