-
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
Deprecated LightningLoggerBase in favor of Logger and deprecated loggers/base.py in favor of loggers/logger.py with backward compatibility #12014
Conversation
@MohammedAlkhrashi Thanks so much for your PR! Mind fixing the merge conflicts and failing tests so we can get this merged? |
Alright 👍 , I will try to fix the conflicts and the failing tests by next week if that's okay. |
Awesome, thanks! |
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.
Could you also update occurrences in the docs?
$ grep -rnI LightningLoggerBase docs
docs/source/extensions/logging.rst:207:You can implement your own logger by writing a class that inherits from :class:`~pytorch_lightning.loggers.base.LightningLoggerBase`.
docs/source/extensions/logging.rst:212: from pytorch_lightning.loggers.base import LightningLoggerBase, rank_zero_experiment
docs/source/extensions/logging.rst:216: class MyLogger(LightningLoggerBase):
docs/source/common/lightning_module.rst:996: # List of LightningLoggerBase objects
docs/source/common/trainer.rst:1755: # List of LightningLoggerBase objects
3aa05b4
to
8454a6c
Compare
10902cb
to
4faa34f
Compare
e899a0b
to
9f06248
Compare
Hi everyone, I've fixed the merge conflicts, failed tests, and updated the docs accordingly. However, I was wondering if we should also implement wrappers for other functionality in current loggers/base.py for backward compatibility? Such as DummyLogger, or LoggerCollection. Currently, only LightiningLoggerBase is backward compatible if imported directly from 'pl.loggers.base'. Additionally, I am not sure about the deprecation test procedure exactly, should I move my deprecation tests to tests/deprecated_api? If so, I am assuming it's moved to the 1.8 files, is that correct? |
Great work!
Yes exactly, we should. The exception is LoggerCollection where you would need to just keep the existing deprecation message (because it gets removed in 1.8).
Yes, see my latest commit and the addition in |
for more information, see https://pre-commit.ci
…n loggers/logger.py
d6d1e5e
to
73c094d
Compare
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.
Thank you for your contribution!
Co-authored-by: Aki Nitta <[email protected]>
for more information, see https://pre-commit.ci
Head branch was pushed to by a user without write access
What does this PR do?
Fixes #11971
I still haven't updated the documentation, I first wanted to make sure that I am on the right track and if there are any necessary changes needed.
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?