(a)
| 149 | |
| 150 | def test_pre_dispatch_mode_stack(self): |
| 151 | def f(a): |
| 152 | b = torch.ones(4, 4) |
| 153 | return torch.matmul(a, b) |
| 154 | # We expect to see matmul in the trace - it should NOT be decomposed into mm. |
| 155 | # Also, torch.ones() doesn't show up in the trace. |
| 156 | # This is annoying but expected: ones() never dispatches to the Autograd dispatch key, |
nothing calls this directly
no test coverage detected