Open arunpatro opened 5 years ago
I am using torch.save() to save a model file. However, everytime I save it, it changes. Why so?
torch.save()
netG_1 = torch.load('netG.pth') netG_2 = torch.load('netG.pth') torch.save(netG_1, 'netG_1.pth') torch.save(netG_2, 'netG_2.pth')
Using md5sum *.pth:
md5sum *.pth
779f0fefca47d17a0644033f9b65e594 netG_1.pth 476f502ec2d1186c349cdeba14983d09 netG_2.pth b0ceec8ac886a11b79f73fc04f51c6f9 netG.pth
I am using
torch.save()
to save a model file. However, everytime I save it, it changes. Why so?Using
md5sum *.pth
: