未验证 提交 4e416c99 编写于 作者: 傅剑寒 提交者: GitHub

fix doc eror of index_put in develop (#53727)

* fix doc eror of index_put in develop

* fix doc error for index_put; test=document_fix; test=docs_preview
上级 95ae5d5c
......@@ -4805,7 +4805,7 @@ def index_put_(x, indices, value, accumulate=False, name=None):
Args:
x (Tensor) : The Source Tensor. Supported data types are int32, int64, float16, float32, float64, bool.
indices (Tuple of Tensor): The tuple of Tensor containing the indices to index.
The data type of ``tensor in indices`` must be int32, int64 or bool
The data type of ``tensor in indices`` must be int32, int64 or bool.
value (Tensor): The tensor used to be assigned to x.
accummulate (Bool, optional): Whether the elements in values are added to x. Default: False.
name(str, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None.
......@@ -4815,6 +4815,7 @@ def index_put_(x, indices, value, accumulate=False, name=None):
Examples:
.. code-block:: python
import paddle
x = paddle.zeros([3, 3])
......@@ -4845,6 +4846,7 @@ def index_put(x, indices, value, accumulate=False, name=None):
Examples:
.. code-block:: python
import paddle
x = paddle.zeros([3, 3])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册