-
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
[Bug Fix/Feature] Enable logging within callback #4167
Conversation
Hello @tchaton! Thanks for updating this PR.
Comment last updated at 2020-10-16 10:24:33 UTC |
* save initial arguments * typing * chlog * .
* remove duplicate metric vs step log * remove duplicate metric vs step log * remove duplicate metric vs step log * fix ddp index issue
* add test * fix * sleepy boy * chlog * Apply suggestions from code review Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com> Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
…om/PyTorchLightning/pytorch-lightning into bug/fix_3813_log_fails_in_callback
Codecov Report
@@ Coverage Diff @@
## master #4167 +/- ##
=======================================
+ Coverage 92% 93% +1%
=======================================
Files 103 103
Lines 7792 7840 +48
=======================================
+ Hits 7147 7273 +126
+ Misses 645 567 -78 |
What does this PR do?
This PR enables logging within callback containing
val
and will be extended to all in future commit.What changed:
run_evaluation
function,model._result = Result()
at the beginning to enable logging on all callbacks.run_evaluation
to happen before pushing to logger.Fixes #3813
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 🙃