Making data loader deterministic

Hi,

It seems every time I iterate over my data loader, I get a different order of my inputs. I have the following code to fix the randomness in my torch, but this doesn’t seem to fix it.

torch.manual_seed(123)
torch.cuda.manual_seed(123)
np.ranom.seed(123)
random.seed(123)
torch.backends.cudnn.enabled=False
torch.backends.cudnn.deterministic=True

Any tips?