Iterate over all tensor permuation in speceific dim

Hi Ameen!

Does torch.roll() do part of what you want?

Best.

K. Frank

1 Like