!37343 fix doc description of scatter_max functional interface
Merge pull request !37343 from polyhedral/code_docs_scatter_max
This commit is contained in:
commit
64e44c6e73
|
@ -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.]]
|
||||
|
|
Loading…
Reference in New Issue