Skip to content

Commit

Permalink
[Docathon][Add CN Doc No.52] (PaddlePaddle#6378)
Browse files Browse the repository at this point in the history
* add a new file square__cn.rst

* modified:   docs/api/paddle/square__cn.rst

* deleted:    docs/api/paddle/square__cn.rst

* new file:   docs/api/paddle/square__cn.rst

* modified:   docs/api/paddle/square__cn.rst

* modified:   docs/api/paddle/square__cn.rst

* modified:   docs/api/paddle/Overview_cn.rst
	deleted:    docs/api/paddle/incubate/nn/FusedMultiTransformer_cn.rst
	modified:   docs/api/paddle/square__cn.rst
  • Loading branch information
entired authored Jan 15, 2024
1 parent a854fc0 commit 4c20c72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api/paddle/Overview_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ tensor 数学操作原位(inplace)版本
" :ref:`paddle.rsqrt_ <cn_api_paddle_rsqrt_>` ", "Inplace 版本的 rsqrt API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.scale_ <cn_api_paddle_scale_>` ", "Inplace 版本的 scale API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.sqrt_ <cn_api_paddle_sqrt_>` ", "Inplace 版本的 sqrt API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.square_ <cn_api_paddle_square_>` ", "Inplace 版本的 square API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.subtract_ <cn_api_paddle_subtract_>` ", "Inplace 版本的 subtract API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.tan_ <cn_api_paddle_tan_>` ", "Inplace 版本的 tan API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.cos_ <cn_api_paddle_cos_>` ", "Inplace 版本的 cos API,对输入 x 采用 Inplace 策略"
Expand Down
11 changes: 11 additions & 0 deletions docs/api/paddle/square__cn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cn_api_paddle_square_:

square\_
-------------------------------

.. py:function:: paddle.square_(x, name=None)
Inplace 版本的 :ref:`cn_api_paddle_square` API,对输入 x 采用 Inplace 策略。

更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。

.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3

0 comments on commit 4c20c72

Please sign in to comment.