fixed doc for ScatterMax

pull/1564/head
jiangjinsheng 5 years ago
parent 7aa5e7f3c3
commit a243dc9ea3

@ -2163,7 +2163,7 @@ class ScatterMax(PrimitiveWithInfer):
Tensor, has the same shape and data type as `input_x`.
Examples:
>>> input_x = Tensor(np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]), mindspore.float32)
>>> 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)
>>> update = Tensor(np.ones([2, 2, 3]) * 88, mindspore.float32)
>>> scatter_max = P.ScatterMax()

Loading…
Cancel
Save