Is there a native way in pytorch to shuffle the elements of a tensor?
I tried generating a random permutation of indeces with torch.randperm() and apply it using torch.index_select() , but I was only able to to shuffle rows/columns using this technique.