Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

model load pytorch

model = TheModelClass(*args, **kwargs)
model.load_state_dict(torch.load(PATH))
model.eval()
Source by pytorch.org #
 
PREVIOUS NEXT
Tagged: #model #load #pytorch
ADD COMMENT
Topic
Name
3+3 =