Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytorch dill model 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)
Source by discuss.pytorch.org #
 
PREVIOUS NEXT
Tagged: #pytorch #dill #model #save
ADD COMMENT
Topic
Name
2+7 =