x = torch.randn(100,3,32,32)
x_perm = x[torch.randperm(100)]

You can combine the tensors using stack if they’re in a python list. You can also use something like x.index_select(0, torch.randperm(100) .