perm (list[int] or np.ndarray(int), optional) – The order of the input dimensions for the returned tensor. If you provide it, it must
be a permutation of all integers between 0 and N-1
, where N is the rank of a.
If you don’t provide it, the order of the dimensions is inverted, that is to say,
it defaults to [N-1, …, 1, 0]
.