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

Make sure train doesn't crash when called at max_epoch #608

Merged
merged 1 commit into from
Dec 8, 2019

Conversation

neggert
Copy link
Contributor

@neggert neggert commented Dec 8, 2019

#598 introduced as subtle bug where Trainer.train would crash on an uninitialized variable if the trainer was run after resuming from a checkpoint that was already at max_epochs. This PR makes sure we always have a reference to the model, even if the train loop never runs.

@williamFalcon williamFalcon merged commit 2baa80d into Lightning-AI:master Dec 8, 2019
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

Successfully merging this pull request may close these issues.

2 participants