Parameters
nDims: number
idDims: number[]
Returns {
expandDims: number[];
permutationIndices: number[];
}
An object consisting of the following fields:
- permutationIndices: Indices to permute the axes of the tensor with.
- expandDims: Indices to the dimension that need to be expanded from the
tensor after permutation.
expandDims: number[]
permutationIndices: number[]
Get the permutation for a given input tensor.