add index_put api (#52886)
* add index_put api
* fix value broadcast in backward and add test case in static
* add timeout=120s for index_put
* add op_compat for index_put
* add inplace index_put test
* add test case when index tensor in indices is int32 when indices.size less than x.dims
* add index_put api backward in cpu place
* add backward test case
* refactor code to delete some duplicated code
* replace reshape with resize for decrease extra memcpy
* add datatype flag in backward yaml
* fix bug in documentation
* Update python/paddle/tensor/manipulation.py
---------
Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
Showing
此差异已折叠。
想要评论请 注册 或 登录