I have a model file which looks like this
OrderedDict([(\'inp.conv1.conv.weight\', (0 ,0 ,0 ,.,.) = -1.5073e-01 6.4760e-02 1.9156e-01
Simply use:
torch.save(model_conv,'cnn.pt') the_model = torch.load('cnn.pt')