forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix gradcheck to generate valid input for forward AD complex (pytorch…
…#68001) Summary: This fixed a few of the linalg checks that we disabled before! This also seems to break sgn, abs and angle (sending on CI here to see if there are more). These two functions used to only ever get pure imaginary or real values. This is very much likely that something is wrong with their formula. But they are implemented as element-wise, so not sure where the error can come from. I tried to look at it but nothing obvious seems wrong there (especially because it is correct in backward mode). Pull Request resolved: pytorch#68001 Reviewed By: soulitzer Differential Revision: D32280475 Pulled By: albanD fbshipit-source-id: e68b1ce0e2e97f8917c3d393141d649a7669aa9d
- Loading branch information
1 parent
94b6fa6
commit a6c0edf
Showing
2 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters