@@ -45,14 +45,8 @@ def skip(pattern: str | Pattern, reason: str, *, condition: bool = True):
4545
4646
4747SKIP_TESTS = (
48- skip (
49- r"^test_ai_onnx_ml_array_feature_extractor" ,
50- "ImportError: cannot import name 'opset' from 'onnxscript.onnx_opset'" ,
51- ),
52- skip (
53- r"^test_ai_onnx_ml_binarizer" ,
54- "ImportError: cannot import name 'opset' from 'onnxscript.onnx_opset'" ,
55- ),
48+ skip (r"^test_ai_onnx_ml_array_feature_extractor" , "ORT doesn't support this op" ),
49+ skip (r"^test_ai_onnx_ml_binarizer" , "ORT doesn't support this op" ),
5650 skip (r"^test_center_crop_pad_crop_negative_axes_hwc" , "fixme: ORT segfaults" ),
5751 skip (r"_scan_" , "Operator Scan is not supported by onnxscript" ),
5852 skip (r"^test_scan" , "Operator Scan is not supported by onnxscript" ),
@@ -89,6 +83,7 @@ def skip(pattern: str | Pattern, reason: str, *, condition: bool = True):
8983 "Change when the converter supports support something like 'while i < n and cond:'" ,
9084 ),
9185 skip (r"^test_ai_onnx_ml_label_encoder" , "ONNX Runtime does not support Opset 21 at 1.17" ),
86+ skip (r"^test_ai_onnx_ml_tree_ensemble" , "Opset 23 is not supported" ),
9287)
9388
9489if sys .platform == "win32" :
@@ -160,7 +155,7 @@ class TestOnnxBackEnd(unittest.TestCase):
160155 test_folder = root_folder / "tests" / "onnx_backend_test_code"
161156 temp_folder = root_folder / "tests" / "export"
162157
163- def _proto_to_os_and_back (self , proto : onnxscript .FunctionProto , ** export_options ):
158+ def _proto_to_os_and_back (self , proto : onnx .FunctionProto , ** export_options ):
164159 """Convert a proto to onnxscript code and convert it back to a proto."""
165160 code = onnx_export .export2python (proto , ** export_options )
166161 map = extract_functions (proto .name , code , TestOnnxBackEnd .temp_folder )
0 commit comments