ptrblck:

The linked docs gives you a good overview about reproducibility etc.
However, even setting the same seed in both scripts will yield different binary representations and I think it might be related to the pickling itself.


Hi,
Thanks for your response. Yes I was also thinking about the pickling but I am struggling on how to precise (to some amount of precision after floating point) the storing on the binary file. If I understand properly, it is because of storing float in the file. For instance, 5.002 might be stored 5.002000000000001 in file 1 and 5.002000000000002 in file 2.
Would be nice if you know any function to indicate torch.save with precision level, or maybe it’s not there at all.
Regards,