Skip to content

Instantly share code, notes, and snippets.

@vsay01
Created January 22, 2020 02:06
Show Gist options
  • Save vsay01/50ae099ecc7a98c522034656d0ed5c04 to your computer and use it in GitHub Desktop.
Save vsay01/50ae099ecc7a98c522034656d0ed5c04 to your computer and use it in GitHub Desktop.
calling train method
trained_model = train(1, 3, np.Inf, loaders, model, optimizer, criterion, use_cuda, "./checkpoint/current_checkpoint.pt", "./best_model/best_model.pt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment