-
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
Return the default_root_dir
as the log_dir
when the logger is a LoggerCollection
#8187
Merged
carmocca
merged 23 commits into
Lightning-AI:master
from
gahdritz:bugfix/loggercollection_profiler
Jul 19, 2021
Merged
Return the default_root_dir
as the log_dir
when the logger is a LoggerCollection
#8187
carmocca
merged 23 commits into
Lightning-AI:master
from
gahdritz:bugfix/loggercollection_profiler
Jul 19, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gahdritz
requested review from
awaelchli,
Borda,
carmocca,
justusschock,
kaushikb11,
SeanNaren,
tchaton and
williamFalcon
as code owners
June 29, 2021 01:28
Hello @gahdritz! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-07 00:26:02 UTC |
gahdritz
changed the title
Bugfix/loggercollection profiler
Fix LoggerCollection/Pytorch profiler bug (issue #8157)
Jun 29, 2021
Codecov Report
@@ Coverage Diff @@
## master #8187 +/- ##
=======================================
- Coverage 93% 88% -5%
=======================================
Files 212 217 +5
Lines 13581 14263 +682
=======================================
- Hits 12624 12577 -47
- Misses 957 1686 +729 |
awaelchli
reviewed
Jun 29, 2021
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
gahdritz
force-pushed
the
bugfix/loggercollection_profiler
branch
from
June 30, 2021 21:57
950342f
to
5dd9965
Compare
tchaton
reviewed
Jul 1, 2021
awaelchli
changed the title
Fix LoggerCollection/Pytorch profiler bug (issue #8157)
Fix LoggerCollection/Pytorch profiler bug
Jul 1, 2021
tchaton
approved these changes
Jul 6, 2021
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 !
Borda
reviewed
Jul 6, 2021
carmocca
reviewed
Jul 6, 2021
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
for more information, see https://pre-commit.ci
awaelchli
reviewed
Jul 8, 2021
Borda
approved these changes
Jul 19, 2021
carmocca
changed the title
Fix LoggerCollection/Pytorch profiler bug
Return the Jul 19, 2021
default_root_dir
as the log_dir
when the logger is a LoggerCollection
awaelchli
approved these changes
Jul 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes a bug whereby the PyTorch profiler would fail to write to a local file when the
Trainer
's logger is aLoggerCollection
.Fixes #8157
The way I see it, there are three ways to go about this:
save_dir
property of the LoggerCollection to thedefault_root_dir
of theTrainer
save_dir
of each constituent logger.The first would probably break code that relies on the property being
None
to set defaults. The third, since the Lightning wrapper around the PyTorch profiler relies on PyTorch functions that expect a single path, is probably prohibitively complex.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 🙃