From 94b73231d4f574abfc9bff597c367b825e80c952 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Tue, 13 Jan 2026 11:17:51 -0800 Subject: [PATCH 1/2] Create torch apis 2.11 Signed-off-by: Justin Chu --- onnxscript/_framework_apis/torch_2_11.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 onnxscript/_framework_apis/torch_2_11.py diff --git a/onnxscript/_framework_apis/torch_2_11.py b/onnxscript/_framework_apis/torch_2_11.py new file mode 100644 index 0000000000..bd5421ab6f --- /dev/null +++ b/onnxscript/_framework_apis/torch_2_11.py @@ -0,0 +1,22 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +"""Stable APIs for PyTorch 2.9.""" + +from __future__ import annotations + +__all__ = [ + "check_model", + "convert_version", + "get_torchlib_ops", + "optimize", + "save_model_with_external_data", +] + + +from onnxscript._framework_apis.torch_2_9 import ( + check_model, + convert_version, + get_torchlib_ops, + optimize, + save_model_with_external_data, +) From 08fb7d59f282540000c0ccd3a672d7f7b9040076 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Tue, 13 Jan 2026 11:19:45 -0800 Subject: [PATCH 2/2] Update torch_2_11.py --- onnxscript/_framework_apis/torch_2_11.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxscript/_framework_apis/torch_2_11.py b/onnxscript/_framework_apis/torch_2_11.py index bd5421ab6f..16b58c4f2c 100644 --- a/onnxscript/_framework_apis/torch_2_11.py +++ b/onnxscript/_framework_apis/torch_2_11.py @@ -1,6 +1,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. -"""Stable APIs for PyTorch 2.9.""" +"""Stable APIs for PyTorch 2.11.""" from __future__ import annotations