Skip to content

Commit 75b36b1

Browse files
authored
[Docathon][Add Inplace CN Doc No.36] (#7119)
* Add Inplace version description for paddle.nan_to_num_ in Chinese * update function parameters
1 parent 0a31a2f commit 75b36b1

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
@@ -244,6 +244,7 @@ tensor 数学操作原位(inplace)版本
244244
" :ref:`paddle.less_than_ <cn_api_paddle_less_than_>` ", "Inplace 版本的 less_than API,对输入 x 采用 Inplace 策略"
245245
" :ref:`paddle.lgamma_ <cn_api_paddle_lgamma_>` ", "Inplace 版本的 lgamma API,对输入 x 采用 Inplace 策略"
246246
" :ref:`paddle.log_normal_ <cn_api_paddle_log_normal_>` ", "Inplace 版本的 log_normal API,对输入 x 采用 Inplace 策略"
247+
" :ref:`paddle.nan_to_num_ <cn_api_paddle_nan_to_num_>` ", "Inplace 版本的 nan_to_num API,对输入 x 采用 Inplace 策略"
247248

248249

249250

docs/api/paddle/nan_to_num__cn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _cn_api_paddle_nan_to_num_:
2+
3+
nan\_to\_num\_
4+
-------------------------------
5+
6+
.. py:function:: paddle.nan_to_num_(x, nan = 0.0, posinf = None, neginf = None, name = None)
7+
8+
Inplace 版本的 :ref:`cn_api_paddle_nan_to_num` 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

0 commit comments

Comments
 (0)