Solved by Andrea_Rosasco in post #2 
              
              
                Yes, checking the documentation it looks like it was introduce in PyTorch 1.8. This is the documentation for your release: Reproducibility — PyTorch 1.7.1 documentation 
It uses 

torch.set_deterministic() 

to ensure you are running deterministic algorithms when available.