-
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
refactor imports of logger dependencies #4860
Conversation
from pytorch_lightning.loggers.comet import COMET_AVAILABLE, CometLogger | ||
from pytorch_lightning.loggers.mlflow import MLFLOW_AVAILABLE, MLFlowLogger | ||
from pytorch_lightning.loggers.neptune import NEPTUNE_AVAILABLE, NeptuneLogger | ||
from pytorch_lightning.loggers.test_tube import TESTTUBE_AVAILABLE, TestTubeLogger | ||
from pytorch_lightning.loggers.wandb import WANDB_AVAILABLE, WandbLogger |
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 guess alco this one split per logger, right? @tchaton @SeanNaren
even this one is too large :]
@awaelchli do you have suggestions why the mocking tests for loggers are failing? |
0a58bd1
to
b8ad06c
Compare
@awaelchli it seems to be still falling, so far I see it seems that with mocking we cannot use the actual |
of course it can :) You can test this also locally, all you have to do is uninstall the loggers (pip uninstall wandb, for example) and then run the tests and they should still pass. |
4eb387a
to
c360fa8
Compare
Codecov Report
@@ Coverage Diff @@
## master #4860 +/- ##
======================================
Coverage 93% 93%
======================================
Files 134 134
Lines 9976 9992 +16
======================================
+ Hits 9294 9309 +15
- Misses 682 683 +1 |
@awaelchli mind recheck? 🐰 |
…Lightning/pytorch-lightning into refactor/imports-loggers
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.
looks like some tests are failing on master.
yes, but the last commit here touching code b2cbf7c is fine... |
* refactor imports of logger dependencies * fix * fix * fix * name * fix * mocks * fix tests * fix mlflow * fix test tube * fix wandb import check * whitespace * name * name * hack * hack * rev * fix * update mlflow import check * try without installing conda dep * . * . * . * . * . * . * . * . * . Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit ec0fb7a)
What does this PR do?
Refactoring imports around optional loggers, @awaelchli
resolves partially #2266
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃