Skip to content

Commit ec71d05

Browse files
authored
Merge branch 'main' into xiaowu/addOps(scalar_tensor)
2 parents 85ec56c + a6accf0 commit ec71d05

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"pytest!=7.1.0",
2626
"pyyaml",
2727
)
28-
ONNX = "onnx==1.13"
29-
ONNX_RUNTIME = "onnxruntime==1.14"
30-
PYTORCH = "torch==1.13"
28+
ONNX = "onnx==1.13.1"
29+
ONNX_RUNTIME = "onnxruntime==1.14.1"
30+
PYTORCH = "torch==1.13.1"
3131

3232

3333
@nox.session(tags=["build"])

onnxscript/backend/onnx_export_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def skip(pattern: str | Pattern, reason: str, *, condition: bool = True):
6363
skip(
6464
r"^test_optional_get_element_tensor",
6565
"ORT Unable to create onnxruntime InferenceSession for executing .OptionalGetElement op with onnx model",
66-
condition=ort.__version__ == "1.14.0",
66+
condition=ort.__version__[:4] == "1.14",
6767
),
6868
skip(
6969
r"test_loop",
@@ -123,7 +123,6 @@ def exec_main(f, *inputs):
123123

124124

125125
class TestOnnxBackEnd(unittest.TestCase):
126-
127126
test_folder = pathlib.Path(__file__).parent.parent / "tests" / "onnx_backend_test_code"
128127

129128
def test_export2python(self):

onnxscript/tests/function_libs/torch_aten/ops_correctness_test.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -464,16 +464,6 @@ def _where_input_wrangler(
464464
TESTED_OPS = frozenset(OPINFO_FUNCTION_MAPPING)
465465

466466
EXPECTED_SKIPS_OR_FAILS = (
467-
xfail(
468-
"logsumexp",
469-
reason="ONNX Runtime 1.13 does not support ReduceLogSumExp-18",
470-
enabled_if=version_utils.onnxruntime_older_than("1.14"),
471-
),
472-
xfail(
473-
"nn.functional.upsample_nearest2d",
474-
reason="ONNX Runtime 1.13 does support opset18",
475-
enabled_if=version_utils.onnxruntime_older_than("1.14"),
476-
),
477467
xfail("logcumsumexp", reason="naive implementation not numerically stable"),
478468
xfail("round", variant_name="decimals_0", reason="The op does not support decimals"),
479469
xfail("round", variant_name="decimals_3", reason="The op does not support decimals"),

onnxscript/tests/functions/onnxfns2_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ def test_onnxfns_hardmax(self):
116116
# skip_test_names=[])
117117

118118
@unittest.skipIf(
119-
Version(onnxruntime.__version__) == Version("1.14"),
119+
onnxruntime.__version__[:4] == "1.14",
120120
reason="onnxruntime 1.14 Segfaults.",
121121
)
122122
def test_onnxfns_space_to_depth(self):
123-
124123
self.run_onnx_test(onnxfns2.SpaceToDepth, skip_test_names=[], skip_eager_test=True)
125124

126125

0 commit comments

Comments
 (0)