-
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: clean trainer device & distrib getters #5300
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 |
10d5136
to
0e562bb
Compare
0e562bb
to
7bfa0c5
Compare
988c352
to
9b9bb10
Compare
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.
@@ -23,7 +23,7 @@ class DeprecatedDistDeviceAttributes: | |||
|
|||
@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) |
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.
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
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.
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 🙃