From 41b6912d92b94b47e20f725ba4667a405ba61483 Mon Sep 17 00:00:00 2001 From: liuwenhao4 Date: Fri, 19 Jun 2020 15:33:33 +0800 Subject: [PATCH] Fix some mistakes of InplaceAddD and InplaceSubD vm ops --- mindspore/ops/operations/math_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ops/operations/math_ops.py b/mindspore/ops/operations/math_ops.py index 038a14eede..8bba03f251 100644 --- a/mindspore/ops/operations/math_ops.py +++ b/mindspore/ops/operations/math_ops.py @@ -791,7 +791,7 @@ class InplaceAdd(PrimitiveWithInfer): Tensor, has the same shape and dtype as input. Examples: - >>> indices = [0, 1] + >>> indices = (0, 1) >>> input_x = Tensor(np.array([[1, 2], [3, 4], [5, 6]]), mindspore.float32) >>> input_v = Tensor(np.array([[0.5, 1.0], [1.0, 1.5]]), mindspore.float32) >>> inplaceAdd = P.InplaceAdd(indices) @@ -850,7 +850,7 @@ class InplaceSub(PrimitiveWithInfer): Tensor, has the same shape and dtype as input. Examples: - >>> indices = [0, 1] + >>> indices = (0, 1) >>> input_x = Tensor(np.array([[1, 2], [3, 4], [5, 6]]), mindspore.float32) >>> input_v = Tensor(np.array([[0.5, 1.0], [1.0, 1.5]]), mindspore.float32) >>> inplaceSub = P.InplaceSub(indices)