Modèle de l'aneth Pytorch Save

import dill

model_copy=dill.dumps(model)
torch.save(model_copy,‘model_ignite_original.pt’)

model1 = torch.load(model_name)
model=dill.loads(model1)
Magnificent Magpie