-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
skip best_model_path if checkpoint_callback is None #2962
skip best_model_path if checkpoint_callback is None #2962
Conversation
Hello @lezwon! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-10-01 00:51:34 UTC |
This pull request is now in conflict... :( |
662d168
to
056bf5e
Compare
@lezwon how is it going? seems quite ready to go... 🐰 |
6b27dc2
to
7173a4c
Compare
if self.trainer.checkpoint_callback is not None: | ||
self.trainer.checkpoint_callback.best_model_path = best_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about we just merge this one line fix into master? This would close the issue before release and you can still figure out the hard testing part for TPU in the other PR that's blocking this.
cc @Borda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's sounds good 👍
7173a4c
to
51f495b
Compare
Codecov Report
@@ Coverage Diff @@
## master #2962 +/- ##
=======================================
+ Coverage 85% 90% +5%
=======================================
Files 108 108
Lines 8433 8387 -46
=======================================
+ Hits 7191 7584 +393
+ Misses 1242 803 -439 |
What does this PR do?
Fixes training error when
checkpoint_callback=False
is set during training on TPU.Fixes #2961
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃