Last active
January 22, 2020 23:29
-
-
Save vsay01/ed3812306c00f129e5d738686cdefd7b to your computer and use it in GitHub Desktop.
Load saved checkpoint param
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define optimzer | |
optimizer = optim.Adam(model.parameters(), lr=0.001) | |
# define checkpoint saved path | |
ckp_path = "./checkpoint/current_checkpoint.pt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment