From 36fc72baaf9960bc55a7a17ca4829956bd9c86ad Mon Sep 17 00:00:00 2001 From: wuxuejian Date: Mon, 31 Aug 2020 10:53:44 +0800 Subject: [PATCH] update unique with pad comment format --- mindspore/ops/operations/array_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ops/operations/array_ops.py b/mindspore/ops/operations/array_ops.py index aca4be8fcf..7df2e41209 100644 --- a/mindspore/ops/operations/array_ops.py +++ b/mindspore/ops/operations/array_ops.py @@ -699,7 +699,7 @@ class UniqueWithPad(PrimitiveWithInfer): - idx (Tensor) - The index of each value of x in the unique output y, the shape and type same as x. Examples: - >>> x = Tensor(np.array([[1, 1, 5, 5, 4, 4, 3, 3, 2, 2,]), mindspore.int32) + >>> x = Tensor(np.array([1, 1, 5, 5, 4, 4, 3, 3, 2, 2,]), mindspore.int32) >>> pad_num = 8 >>> out = P.UniqueWithPad()(x, pad_num) ([1, 5, 4, 3, 2, 8, 8, 8, 8, 8], [0, 0, 1, 1, 2, 2, 3, 3, 4, 4])