Refactor: clean trainer device & distrib getters#5300
Merged
Borda merged 17 commits intorelease/1.2-devfrom Jan 12, 2021
Merged
Refactor: clean trainer device & distrib getters#5300Borda merged 17 commits intorelease/1.2-devfrom
Borda merged 17 commits intorelease/1.2-devfrom
Conversation
|
Hello @Borda! Thanks for updating this PR.
Comment last updated at 2021-01-12 08:41:03 UTC |
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5300 +/- ##
=================================================
+ Coverage 46% 93% +46%
=================================================
Files 151 151
Lines 10482 10616 +134
=================================================
+ Hits 4844 9831 +4987
+ Misses 5638 785 -4853 |
12 tasks
10d5136 to
0e562bb
Compare
12 tasks
0e562bb to
7bfa0c5
Compare
988c352 to
9b9bb10
Compare
s-rog
approved these changes
Jan 11, 2021
justusschock
approved these changes
Jan 11, 2021
awaelchli
approved these changes
Jan 11, 2021
| @property | ||
| def on_cpu(self) -> bool: | ||
| # rank_zero_warn("Internal: `on_cpu` is deprecated in v1.1 and will be removed in v1.2.", DeprecationWarning) | ||
| rank_zero_warn("Internal: `on_cpu` is deprecated in v1.2 and will be removed in v1.4.", DeprecationWarning) |
Contributor
There was a problem hiding this comment.
We should make sure we don't use these properties internally otherwise users gets spammed with deprecation warnings and they can't do anything about it.
This already happens in some places with other deprecation warnings and this is very confusing to the user (warning utils)
79ce3be to
a42e8c0
Compare
tarepan
added a commit
to tarepan/pytorch-lightning
that referenced
this pull request
Jan 19, 2021
Normal and HPC load now use common GPU type check (Lightning-AI#5300). Now that there is no needs of accepting both bool and int.
16 tasks
16 tasks
This file contains hidden or 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
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 # (issue) <- this links related issue to this PR
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 🙃