Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created July 18, 2020 11:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save prateekjoshi565/87a958e0bc42e175408fbabb49cd8842 to your computer and use it in GitHub Desktop.
#load weights of best model
path = 'saved_weights.pt'
model.load_state_dict(torch.load(path))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment