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

Add missing `if __name__ == "__main__":` guards to some tests.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154716
Approved by: https://github.com/Skylion007
2025-06-04 14:38:13 +00:00
..
assets
dynamo [ONNX] Clean up legacy dynamo export code (#149745) 2025-03-23 19:35:16 +00:00
expect
exporter [ONNX] Allow exporter to export SDPA to Attention onnx operator (#154596) 2025-06-04 14:29:44 +00:00
internal [ONNX] Clean up the diagnostics module (#149864) 2025-03-26 05:58:32 +00:00
model_defs
ops [ONNX] Create support for rotary embeddings (#154745) 2025-06-04 03:07:43 +00:00
torchlib [BE]: Update ruff to 0.11.8 (#153249) 2025-05-12 18:30:52 +00:00
autograd_helper.py
onnx_test_common.py [ONNX] Clean up legacy dynamo export code (#149745) 2025-03-23 19:35:16 +00:00
pytorch_test_common.py [ONNX] Clean up the diagnostics module (#149864) 2025-03-26 05:58:32 +00:00
test_autograd_funs.py
test_custom_ops.py
test_fx_passes.py [BE][CI] bump ruff to 0.9.2: multiline assert statements (#144546) 2025-02-27 20:46:16 +00:00
test_fx_type_promotion.py
test_lazy_import.py
test_models_onnxruntime.py
test_models_quantized_onnxruntime.py Add __main__ guards to tests (#154716) 2025-06-04 14:38:13 +00:00
test_models.py
test_onnx_opset.py
test_onnxscript_no_runtime.py Add __main__ guards to tests (#154716) 2025-06-04 14:38:13 +00:00
test_onnxscript_runtime.py PEP585: More UP006 fixes (#146392) 2025-02-20 06:18:13 +00:00
test_op_consistency.py
test_pytorch_jit_onnx.py
test_pytorch_onnx_no_runtime.py [ONNX] Clean up the diagnostics module (#149864) 2025-03-26 05:58:32 +00:00
test_pytorch_onnx_onnxruntime_cuda.py
test_pytorch_onnx_onnxruntime.py [BE][CI] bump ruff to 0.9.2: multiline assert statements (#144546) 2025-02-27 20:46:16 +00:00
test_pytorch_onnx_shape_inference.py
test_symbolic_helper.py
test_utility_funs.py
test_verification.py
verify.py Update ruff linter for PEP585 (#147540) 2025-02-22 04:45:17 +00:00