-
Notifications
You must be signed in to change notification settings - Fork 4.3k
zero the gradients after updating weights #3447
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
base: main
Are you sure you want to change the base?
Conversation
Manually zero the gradients after updating weights by using machine epsilon for standard float (64-bit).
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3447
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5f1fbf5 with merge base b78fc75 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Would you be able to share details on why do you want to do this change.
Setting them to None is equivalent to setting them to exactly 0. which is best no?
answer: |
Thanks for sharing these details. |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Manually zero the gradients after updating weights by using machine epsilon for standard float (64-bit).
Fixes #ISSUE_NUMBER
Description
Checklist
cc @albanD @jbschlosser