-
Notifications
You must be signed in to change notification settings - Fork 26.3k
add warning when ParameterList/Dict is used with DataParallel #44405
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
Conversation
[ghstack-poisoned]
|
Would you like to add a test for the warning? |
💊 CI failures summary and remediationsAs of commit ec2d043 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
|
@mruberry I am not sure where should I add such tests? |
What about adding it to TestDataParallel?
|
|
Ho I forgot that was a thing! Thanks. |
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
…lel" [ghstack-poisoned]
Codecov Report
@@ Coverage Diff @@
## gh/albanD/65/base #44405 +/- ##
====================================================
Coverage ? 67.98%
====================================================
Files ? 384
Lines ? 49581
Branches ? 0
====================================================
Hits ? 33707
Misses ? 15874
Partials ? 0 Continue to review full report at Codecov.
|
test/test_nn.py
Outdated
| m = torch.nn.utils.weight_norm(m) | ||
| m = torch.nn.utils.weight_norm(m) | ||
|
|
||
| def test_weight_norm_parameterlistdict(self): |
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.
Nit: this test more accurately verifies that parameter list and parameter dict throw warnings when a user tries to add attributes to them.
mruberry
left a comment
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.
…lel" [ghstack-poisoned]
Stack from ghstack:
Differential Revision: D23783987