-
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
Fix expanding home directory for Trainer's default_root_dir
#19179
Conversation
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.
lets add note to change log
default_root_dir
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 great!
…into fix-relative-path
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #19179 +/- ##
==========================================
- Coverage 83% 49% -34%
==========================================
Files 444 436 -8
Lines 36974 36821 -153
==========================================
- Hits 30616 18080 -12536
- Misses 6358 18741 +12383 |
@carmocca looks like test_trainer_compiled_model_test is broken, if possible could you check because it shouldn't fail. |
What does this PR do?
If the user provides Trainer(default_root_dir="~/Trainer"), the path doesn't get expanded. Instead, it creates the folder with name ~ in the current working directory.
Fixes #19059
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--19179.org.readthedocs.build/en/19179/