Skip to content

Commit

Permalink
[Docathon][Add CN Doc No.1] (#6384)
Browse files Browse the repository at this point in the history
* 新增对sin_英文文档的描述

* 增加Overview文档中sin_ api的描述
  • Loading branch information
Turingg authored Dec 20, 2023
1 parent 1fb678a commit 8f57892
Show file tree
Hide file tree
Showing 2 changed files with 13 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 @@ -190,6 +190,7 @@ tensor 数学操作原位(inplace)版本
" :ref:`paddle.multigammaln_ <cn_api_paddle_multigammaln_>` ", "Inplace 版本的 multigammaln API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.masked_fill_ <cn_api_paddle_masked_fill_>` ", "Inplace 版本的 masked_fill API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.index_fill_ <cn_api_paddle_index_fill_>` ", "Inplace 版本的 index_fill API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.sin_ <cn_api_paddle_sin_>` ", "Inplace 版本的 sin API,对输入 x 采用 Inplace 策略"

.. _tensor_logic:

Expand Down
12 changes: 12 additions & 0 deletions docs/api/paddle/sin__cn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _cn_api_paddle_sin_:

sin\_
-------------------------------

.. py:function:: paddle.sin_(x, name=None)
Inplace 版本的 :ref:`cn_api_paddle_sin` 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 8f57892

Please sign in to comment.