Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix _check_no_differentiable_outputs for forward ad (pytorch#91391)
This `is_forward_ad` isn't propagated, which leads to this line creating a slow-gradcheck failure on master: ``` if not is_forward_ad and any(o.is_complex() for o in outputs): raise ValueError("Expected output to be non-complex. get_numerical_jacobian no " "longer supports functions that return complex outputs.") ``` Pull Request resolved: pytorch#91391 Approved by: https://github.com/albanD
- Loading branch information