mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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