Files
pytorch/test/complex_tensor
Hameer Abbasi 7ceb9d8fb0 Adjust the gradcheck tests for ComplexTensor (#168248)
The existing `gradcheck` tests appear to have some bugs when it comes to dealing with a `TorchDispatchMode`. In this PR, I've hand-rolled some tests that manually use `torch.autograd.gradcheck.gradcheck`; and all of these work as expected.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/168248
Approved by: https://github.com/amjames, https://github.com/albanD
2025-12-08 14:51:48 +00:00
..