From 6fef3abc67c92b3eba6cf155aabf2046269e8356 Mon Sep 17 00:00:00 2001 From: xadupre Date: Fri, 5 Sep 2025 19:29:39 +0200 Subject: [PATCH] Upgrade version to 0.7.10 --- CHANGELOGS.rst | 3 +++ _doc/index.rst | 2 +- _scripts/test_backend_onnxruntime.py | 5 +++++ onnx_diagnostic/__init__.py | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOGS.rst b/CHANGELOGS.rst index 11ba10f7..967c5b0c 100644 --- a/CHANGELOGS.rst +++ b/CHANGELOGS.rst @@ -1,6 +1,9 @@ Change Logs =========== +0.7.10 +++++++ + 0.7.9 +++++ diff --git a/_doc/index.rst b/_doc/index.rst index bfb3176d..42ede5bc 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -239,8 +239,8 @@ The function replaces dynamic dimensions defined as strings by Older versions ============== +* `0.7.10 <../v0.7.10/index.html>`_ * `0.7.9 <../v0.7.9/index.html>`_ -* `0.7.8 <../v0.7.8/index.html>`_ * `0.6.3 <../v0.6.3/index.html>`_ * `0.5.0 <../v0.5.0/index.html>`_ * `0.4.4 <../v0.4.4/index.html>`_ diff --git a/_scripts/test_backend_onnxruntime.py b/_scripts/test_backend_onnxruntime.py index 9ae959f2..fb4b8c68 100644 --- a/_scripts/test_backend_onnxruntime.py +++ b/_scripts/test_backend_onnxruntime.py @@ -50,6 +50,8 @@ def run(self, inputs, **kwargs): class OnnxruntimeBackend(onnx.backend.base.Backend): @classmethod def is_compatible(cls, model) -> bool: + # Not compatible with backend? + # model.ir_version = 11 return all(not (d.domain == "" and d.version > ORT_OPSET) for d in model.opset_import) @classmethod @@ -98,10 +100,12 @@ def run_node(cls, node, inputs, device=None, outputs_info=None, **kwargs): dft_atol = 1e-3 stft_atol = 1e-4 ql_atol = 1e-5 +fp16_atol = 1e-3 backend_test = onnx.backend.test.BackendTest( OnnxruntimeBackend, __name__, test_kwargs={ + "test_attention_4d_fp16": {"atol": fp16_atol}, "test_dft": {"atol": dft_atol, "rtol": numpy.inf}, "test_dft_axis": {"atol": dft_atol, "rtol": numpy.inf}, "test_dft_axis_opset19": {"atol": dft_atol, "rtol": numpy.inf}, @@ -148,6 +152,7 @@ def run_node(cls, node, inputs, device=None, outputs_info=None, **kwargs): unexpected_successes = len(res.result.unexpectedSuccesses) expected_failures = len(res.result.expectedFailures) print("---------------------------------") + print(f"ORT_OPSET={ORT_OPSET}") print( f"tests_run={tests_run} errors={errors} skipped={skipped} " f"unexpected_successes={unexpected_successes} " diff --git a/onnx_diagnostic/__init__.py b/onnx_diagnostic/__init__.py index 24076dcc..9ac8287d 100644 --- a/onnx_diagnostic/__init__.py +++ b/onnx_diagnostic/__init__.py @@ -3,5 +3,5 @@ Functions, classes to dig into a model when this one is right, slow, wrong... """ -__version__ = "0.7.9" +__version__ = "0.7.10" __author__ = "Xavier Dupré"