File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -547,6 +547,7 @@ tensor 元素操作相关原位(inplace)版本
547
547
:header: "API 名称", "API 功能"
548
548
:widths: 10, 30
549
549
550
+ " :ref: `paddle.cast_ <cn_api_paddle_cast _>` ", "Inplace 版本的 cast API,对输入 x 采用 Inplace 策略"
550
551
" :ref: `paddle.index_add_ <cn_api_paddle_index_add _>` ", "Inplace 版本的 :ref: `cn_api_paddle_index_add ` API,对输入 `x ` 采用 Inplace 策略"
551
552
" :ref: `paddle.index_put_ <cn_api_paddle_index_put _>` ", "依据索引 ``indices `` ,将指定位置的 ``x `` 重新赋值为 ``value `` "
552
553
" :ref: `paddle.reshape_ <cn_api_paddle_reshape _>` ", "Inplace 版本的 reshape API,对输入 x 采用 Inplace 策略"
Original file line number Diff line number Diff line change
1
+ .. _cn_api_paddle_cast_ :
2
+
3
+ cast\_
4
+ -------------------------------
5
+
6
+ .. py :function :: paddle.cast_(x, dtype)
7
+ Inplace 版本的 :ref: `cn_api_paddle_cast ` API,对输入 ``x `` 采用 Inplace 策略。
8
+
9
+ 更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别 `_ 了解详情。
10
+
11
+ .. _3.1.3 原位(Inplace)操作和非原位操作的区别 : https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3
You can’t perform that action at this time.
0 commit comments