diff --git a/onnxscript/_framework_apis/torch_2_5.py b/onnxscript/_framework_apis/torch_2_5.py index 5bbb64af88..9f31934701 100644 --- a/onnxscript/_framework_apis/torch_2_5.py +++ b/onnxscript/_framework_apis/torch_2_5.py @@ -59,9 +59,13 @@ def convert_version(model: ir.Model, target_version: int) -> ir.Model: def check_model(model: ir.Model) -> None: - """Check the model.""" + """No-op retained for API compatibility. - del model # Unused yet + This intentionally performs no validation. Running the ONNX checker here was + dropped because it can report false positives and adds overhead to export. + """ + + del model # Intentionally unused: this function performs no validation. def save_model_with_external_data(