mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
This PR improves opcheck to: 1. directly use torch.testing.assert_close (without a msg override). This allows it to print the absolute and relative differences and the number of mismatched elements. 2. take in an atol/rtol tolerance (for if someone just wants to use opcheck in their testing). Test Plan: - tests Pull Request resolved: https://github.com/pytorch/pytorch/pull/146488 Approved by: https://github.com/williamwen42 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| aot_autograd.py | ||
| autograd_registration.py | ||
| fake_tensor.py | ||
| generate_tests.py | ||
| make_fx.py | ||