-
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
TensorBoardLogger sub_dir parameter for grouping logs #6195
TensorBoardLogger sub_dir parameter for grouping logs #6195
Conversation
Hello @janhenriklambrechts! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-05-18 01:26:07 UTC |
Codecov Report
@@ Coverage Diff @@
## master #6195 +/- ##
=======================================
- Coverage 92% 88% -5%
=======================================
Files 197 197
Lines 12878 12886 +8
=======================================
- Hits 11899 11320 -579
- Misses 979 1566 +587 |
@janhenriklambrechts I think that is failing from either a missing or extra |
@janhenriklambrechts
Example:
That's why it's outputting the extra separator in tests. |
@s-rog thanks! Using this info to hotfix that test now :) |
Oh I already went ahead and fixed it! also, for the test can you actually pass in env vars? |
…hts/pytorch-lightning into feature/logging-sub-dir
@s-rog ah rip, just saw your message that you went ahead and fixed it - should I revert these commits? Also, what do you exactly mean with |
Yeah, I think it's best to not change the old test and have consistent separator usage regardless of sub dir usage. lmk if you run into git issues and I'll see what I can do from my end. |
This reverts commit 50b34c6.
@s-rog reverted - thanks for your help!
|
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.
@janhenriklambrechts I went ahead and added it, should be good to merge once test pass!
@s-rog cool thanks - I watch and learn 😄 |
@justusschock Your suggestion should be addressed if you wanna take another look Edit: |
What does this PR do?
TLDR: Adds a
sub_dir
parameter for theTensorBoardLogger
useful for grouping multiple runs in one folder as per #6019.Although in #6019 I advocated for a general
sub_dir
arg for all logger instances to I eventually added it as aTensorBoardLogger
-only parameter. Therefore, this PR only solves the "group multiple tensorboard logs into one"-aspect and not the "keep different logger-type logs in different folders"-aspect. It would still be cool to arrive at the solution described in #6019 - yet that will take a bigger overhaul of the logging module (f.e. adding version parameter to all loggers).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 🙃