Skip to content

Instantly share code, notes, and snippets.

@khalidmeister
Created June 23, 2020 14:57
Show Gist options
  • Save khalidmeister/72c316c01153a91dbb1293dd5b26ed06 to your computer and use it in GitHub Desktop.
Save khalidmeister/72c316c01153a91dbb1293dd5b26ed06 to your computer and use it in GitHub Desktop.
Load the model
# Declare the network
net = Net()
# Set the parameters
net.load_state_dict(torch.load(PATH))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment