Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save the optimizer status for future retraining #2

Open
diegovalenzuelaiturra opened this issue Apr 9, 2019 · 1 comment
Open

Save the optimizer status for future retraining #2

diegovalenzuelaiturra opened this issue Apr 9, 2019 · 1 comment

Comments

@diegovalenzuelaiturra
Copy link

I think it would be useful if the optimizer state was also saved, for a future retraining from a checkpoint

  • torch.save(optimizer.state_dict(), path_to_optimizer)
@lorenlugosch
Copy link
Owner

Good call---I'll work on adding that. Also, when you restart training, it loads the previous state but starts at epoch 1, so that needs to be fixed too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants