I am checking the parameters via:
print(list(m.parameters()))
This outputs something like:
[Parameter containing:
tensor([[-2.5058e-01, -4.3388e-01,  8.4871e-01,  ..., -7.4255e-01, ...

But it is different each time I run it.
I tried saving the parameters to the file like this:
torch.save({'state_dict': m.state_dict()}, 'm1.p') # first time
torch.save({'state_dict': m.state_dict()}, 'm2.p') # next time
And the output is:
-rw-r--r-- 1 root root 387361 Mar  8 14:05 m1.p
-rw-r--r-- 1 root root 387361 Mar  8 13:44 m2.p
Binary files m1.p and m2.p differ