Browse Source

fixed comment for InvertPermutation

tags/v0.3.0-alpha
jiangjinsheng 5 years ago
parent
commit
0fd5d2595c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ops/operations/array_ops.py

+ 3
- 1
mindspore/ops/operations/array_ops.py View File

@@ -905,9 +905,11 @@ class InvertPermutation(PrimitiveWithInfer):
values can not be negative. values can not be negative.


Inputs: Inputs:
- **input_x** (tuple[int]) - The input tuple is constructed by multiple
- **input_x** (Union(tuple[int], Tensor[int])) - The input tuple is constructed by multiple
integers, i.e., :math:`(y_1, y_2, ..., y_S)` representing the indices. integers, i.e., :math:`(y_1, y_2, ..., y_S)` representing the indices.
The values must include 0. There can be no duplicate values or negative values. The values must include 0. There can be no duplicate values or negative values.
If the input is Tensor, it must be 1-d and the dtype is int.



Outputs: Outputs:
tuple[int]. the lenth is same as input. tuple[int]. the lenth is same as input.


Loading…
Cancel
Save