pytorch/test/quantization/pt2e
Anthony Barbier 954ce94950 Add __main__ guards to quantization tests (#154728)
This PR is part of a series attempting to re-submit https://github.com/pytorch/pytorch/pull/134592 as smaller PRs.

In quantization tests:

- Add and use a common raise_on_run_directly method for when a user runs a test file directly which should not be run this way. Print the file which the user should have run.
- Raise a RuntimeError on tests which have been disabled (not run)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154728
Approved by: https://github.com/ezyang
2025-06-10 19:46:07 +00:00
..
test_duplicate_dq.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_graph_utils.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_metadata_porting.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_numeric_debugger.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_quantize_pt2e_qat.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_quantize_pt2e.py [Reland][pytorch] Patch the _is_conv_node function (#154473) 2025-05-30 00:41:03 +00:00
test_representation.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_x86inductor_quantizer.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00
test_xnnpack_quantizer.py Add __main__ guards to quantization tests (#154728) 2025-06-10 19:46:07 +00:00