Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to load pretrained model in pytorch

pytorch_model = MNISTClassifier()
pytorch_model.load_state_dict(torch.load(path))
model.eval()
 
PREVIOUS NEXT
Tagged: #load #pretrained #model #pytorch
ADD COMMENT
Topic
Name
2+5 =