!37343 fix doc description of scatter_max functional interface

Merge pull request !37343 from polyhedral/code_docs_scatter_max
This commit is contained in:
i-robot 2022-07-05 12:52:59 +00:00 committed by Gitee
commit 64e44c6e73
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 2 deletions

View File

@ -1203,8 +1203,7 @@ def scatter_max(input_x, indices, updates):
>>> input_x = Parameter(Tensor(np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]), mindspore.float32), name="input_x")
>>> indices = Tensor(np.array([[0, 0], [1, 1]]), mindspore.int32)
>>> updates = Tensor(np.ones([2, 2, 3]) * 88, mindspore.float32)
>>> scatter_max = ops.ScatterMax()
>>> output = scatter_max(input_x, indices, updates)
>>> output = ops.scatter_max(input_x, indices, updates)
>>> print(output)
[[88. 88. 88.]
[88. 88. 88.]]