Solved by ptrblck in post #4 
              
              
                The order of the returned batches from your DataLoader would still be different, which would yield non-deterministic results. Note that this is usually not a problem, as your model should converge with different seeds. 

If the DataLoader was the only source of randomness, you could use: 
for _ in …