-
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
[FEAT] logging refactors 1/n #4439
Conversation
Hello @tchaton! Thanks for updating this PR.
Comment last updated at 2020-11-02 18:47:07 UTC |
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.
I like this really much. It makes everything much easier to follow!
I left some comments here.
Once this is finished, could you also go over the files as well and add docstrings for all the functions and maybe some type hints as well? This would enhance the readability even further :)
pytorch_lightning/trainer/connectors/logger_connector/__init__.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Justus Schock <[email protected]>
Co-authored-by: Justus Schock <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #4439 +/- ##
=======================================
- Coverage 93% 92% -1%
=======================================
Files 113 116 +3
Lines 8198 8700 +502
=======================================
+ Hits 7633 8047 +414
- Misses 565 653 +88 |
mind adding it to the title so we can track that this is partial? ref: logging refactors 1/n |
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.
Overall this is incredibly neat @tchaton!
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Show resolved
Hide resolved
…rchLightning/pytorch-lightning into feat/epoch_loop_result_objs
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.
Again, I really like this.
Some minor comments, but nothing major!
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Outdated
Show resolved
Hide resolved
…sult_store.py Co-authored-by: Justus Schock <[email protected]>
…rchLightning/pytorch-lightning into feat/epoch_loop_result_objs
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
Outdated
Show resolved
Hide resolved
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.
It's a lot of code at once, however I've reviewed this multiple times and it looks clear and consistent. Let's get this over the finish line :)
…sult_store.py Co-authored-by: Sean Naren <[email protected]>
…rchLightning/pytorch-lightning into feat/epoch_loop_result_objs
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.
LGTM, awesome work Thomas :)
* introducing new logging object * typo * typo * Update pytorch_lightning/trainer/logging.py Co-authored-by: Justus Schock <[email protected]> * Update pytorch_lightning/trainer/logging.py Co-authored-by: Justus Schock <[email protected]> * update on comments * update on comments * add more doctstring * Update pytorch_lightning/core/lightning.py Co-authored-by: Sean Naren <[email protected]> * resolve on comments * solve pyright * Update pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py Co-authored-by: Justus Schock <[email protected]> * update on comments * Update pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py Co-authored-by: Sean Naren <[email protected]> * update on comments Co-authored-by: Justus Schock <[email protected]> Co-authored-by: Sean Naren <[email protected]>
What does this PR do?
This PR start introducing new changes for refactoring logging.
Fixes #4449 #4439
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 🙃