baiyu0120:

It works well in torch v0.4.0, but when I upgraded it to v1.0.0, the training loss became reproducible.


Assuming you mean irreproducible, do you mean that you get different results if you run the same code on PyTorch 0.4 vs PyTorch 1.0 or if you run the code >= 2 times on PyTorch 1.0?