-
Notifications
You must be signed in to change notification settings - Fork 21.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
[nn][utils] Preserve requires_grad from original weight and bias in fuse conv/linear bn weights #89100
Conversation
…use conv/linear bn weights Summary: att, previously we just call nn.Parameter which will have requires_grad=True by default, after this PR we will preserve the requires_grad Test Plan: python test/test_nn.py TestFusionUtils Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/89100
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 9ed3988: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…use conv/linear bn weights Summary: att, previously we just call nn.Parameter which will have requires_grad=True by default, after this PR we will preserve the requires_grad Test Plan: python test/test_nn.py TestFusionUtils Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 0bee303efcb27970cb612721662d0bdd299afd99 Pull Request resolved: #89100
@jerryzh168 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…use conv/linear bn weights (pytorch#89100) Summary: att, previously we just call nn.Parameter which will have requires_grad=True by default, after this PR we will preserve the requires_grad Test Plan: python test/test_nn.py TestFusionUtils Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D41343694](https://our.internmc.facebook.com/intern/diff/D41343694) Pull Request resolved: pytorch#89100 Approved by: https://github.com/ngimel
Stack from ghstack (oldest at bottom):
Summary:
att, previously we just call nn.Parameter which will have requires_grad=True by default, after
this PR we will preserve the requires_grad
Test Plan:
python test/test_nn.py TestFusionUtils
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D41343694