You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update on "Add gradcheck for forward AD by default and functional API"
RFC: pytorch/rfcs#11
This PR adds the option to check forward grad using gradcheck. The current logic is:
- Forward grad is always checked
- If the forward evaluation fails because an op is not implemented, the test is silently passing
The goal is to make sure that all formulas that are added are properly tested without having to add a new test for each op.
The final logic after the next PR that adds the remaining formulas is going to be:
- Forward grad is always checked
- Failure with not implemented op is an actual failure
- Users should set `check_forward=False` if they explicitly don't want to test forward grads (which should not be the case internally).
[ghstack-poisoned]
0 commit comments