!490 update unique with pad comment

Merge pull request !490 from wuxuejian/unique_with_pad_format
pull/7893/head
mindspore-ci-bot 5 years ago committed by Gitee
commit e3b73a5e9b

@ -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])

Loading…
Cancel
Save