How can I permute the value of a Torch tensor?

How can I permute the value of a Torch tensor?

I don’t know what “permute” means in this context, but you could check if calling permute works (will change the order of the dimensions) or e.g. random indexing (would shuffle the tensor).