Skip to content

Commit 67b4987

Browse files
authored
[Docathon][Add API Legend No.46]add the legend of index_put -part (#6952)
* add legend of paddle.index_put * midified docs for paddle.index_put
1 parent 27fbe6b commit 67b4987

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/api/paddle/index_put_cn.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ index_put
77
88
依据索引 ``indices`` ,将指定位置的 ``x`` 重新赋值为 ``value`` 。这里 ``indices`` 是一个 ``tuple of tensor`` 。
99

10+
**示例图解说明**:
11+
12+
下图展示了示例中的情形——一个形状为[3,3]的二维张量通过 index_put 操作,将对应 index 的位置填充为 value 张量里对应元素,注意 index 与 value 的元素个数应匹配。
13+
14+
.. figure:: ../../images/api_legend/index_put.png
15+
:width: 500
16+
:alt: 示例图示
17+
:align: center
18+
1019
参数
1120
:::::::::
1221

15.4 KB
Loading

0 commit comments

Comments
 (0)