!48949 [doc] fix IndexAdd attr axis range bound

Merge pull request !48949 from xupan/indexadd_doc
This commit is contained in:
i-robot 2023-02-16 11:57:39 +00:00 committed by Gitee
commit b490cac5ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ mindspore.ops.IndexAdd
.. py:class:: mindspore.ops.IndexAdd(axis, use_lock=True, check_index_bound=True)
将Tensor `y` 加到Tensor `x` 的指定 `axis``indices``axis` 取值范围为[0, len(x.dim) - 1] `indices` 取值范围为[0, len(x[axis]) - 1]。
将Tensor `y` 加到Tensor `x` 的指定 `axis``indices``axis` 取值范围为[-len(x.dim), len(x.dim) - 1] `indices` 取值范围为[0, len(x[axis]) - 1]。
参数:
- **axis** (int) - 进行索引的axis。