Getting different results running the code in Colab and JupyterNotebook

Not necessarily, if different hardware and potentially software versions (CUDA, PyTorch) are used.
You could run some tests and see, if you would be getting the same random numbers on both platforms in the first place.

1 Like