Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to onnxruntime==1.17.3 #163

Merged
merged 9 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ jobs:

- name: Check for errors and warnings
run: |
if [[ $(grep ERROR doc.txt | grep -v 'validation.cuda') ]]; then
if [[ $(grep ERROR doc.txt | grep -v 'validation.cuda' | grep -v 'pickable') ]]; then
echo "Documentation produces errors."
grep ERROR doc.txt | grep -v 'validation.cuda'
grep ERROR doc.txt | grep -v 'validation.cuda' | grep -v 'pickable'
exit 1
fi
if [[ $(grep WARNING doc.txt | grep -v 'validation.cuda') ]]; then
if [[ $(grep WARNING doc.txt | grep -v 'validation.cuda' | grep -v 'pickable') ]]; then
echo "Documentation produces warnings."
grep WARNING doc.txt | grep -v 'validation.cuda'
grep WARNING doc.txt | grep -v 'validation.cuda' | grep -v 'pickable'
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOGS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Change Logs
0.3.0
+++++

* :pr:`163`: use onnxruntime==1.17.3 as default
* :pr:`162`: add ScatterNDOfShape implementation on CUDA without atomics
* :pr:`159`: add AddAdd custom operator on CUDA
* :pr:`158`: add MulMul custom operator on CUDA
* :pr:`157`: add ScatterNDOfShape custom operator
* :pr:`153`: use onnxruntime==1.17.1 as default
* :pr:`155`: add a function to draw a timeline from a profile
* :pr:`154`: improves ploting legend for profiling
* :pr:`151`: refactoring of TreeEnsemble code to make them faster
Expand Down
2 changes: 1 addition & 1 deletion _doc/tutorial/old_version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ It calls function :func:`bench_virtual <onnx_extended.tools.run_onnx.bench_virtu

runtimes = ["onnxruntime"]
modules = [
{"onnx-extended": "0.2.3", "onnx": "1.15.0", "onnxruntime": "1.17.1"},
{"onnx-extended": "0.2.3", "onnx": "1.15.0", "onnxruntime": "1.17.3"},
{"onnx-extended": "0.2.3", "onnx": "1.15.0", "onnxruntime": "1.16.3"},
{"onnx-extended": "0.2.3", "onnx": "1.15.0", "onnxruntime": "1.15.1"},
{"onnx-extended": "0.2.3", "onnx": "1.15.0", "onnxruntime": "1.14.1"},
Expand Down
2 changes: 1 addition & 1 deletion _doc/tutorial/trees.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Optimizes the parallelisation settings
++++++++++++++++++++++++++++++++++++++

See example :ref:`l-plot-optim-tree-ensemble`.
It produces the following graph. The baseline means `onnxruntime==1.17.1`.
It produces the following graph. The baseline means `onnxruntime==1.17.3`.
The command line is:

::
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_ortcy/test_ortcy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
path = onnx_extended.ortcy.wrap.ortinf.__file__
except ImportError as ee:
path = str(ee)
msg = "libonnxruntime.so.1.17.1: cannot open shared object file"
msg = "libonnxruntime.so.1.17.3: cannot open shared object file"
if msg in str(e):
from onnx_extended.ortcy.wrap import __file__ as loc

Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_ortops/test_optim_tfidf_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_sklearn_count_vectorizer(self):
if "type inference failed" in str(e):
# Type inference failed
# see https://github.com/microsoft/onnxruntime/pull/17497
raise unittest.SkipTest("does not work for onnxruntime<1.17.1")
raise unittest.SkipTest("does not work for onnxruntime<1.17.3")
if "This is an invalid model." in str(e):
raise unittest.SkipTest("not yet implemented for strings")
raise e
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_ortops/test_optim_tfidf_vectorizer_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_sklearn_count_vectorizer(self):
if "type inference failed" in str(e):
# Type inference failed
# see https://github.com/microsoft/onnxruntime/pull/17497
raise unittest.SkipTest("does not work for onnxruntime<1.17.1")
raise unittest.SkipTest("does not work for onnxruntime<1.17.3")
if "This is an invalid model." in str(e):
raise unittest.SkipTest("not yet implemented for strings")
raise e
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_xrun_doc/test_documentation_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
try:
from onnx_extended.ortcy.wrap.ortinf import OrtSession
except ImportError as e:
msg = "libonnxruntime.so.1.17.1: cannot open shared object file"
msg = "libonnxruntime.so.1.17.3: cannot open shared object file"
if msg in str(e):
from onnx_extended.ortcy.wrap import __file__ as loc

Expand Down
2 changes: 1 addition & 1 deletion onnx_extended/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def local_print(msg):

this = os.path.dirname(cyfile)
files = os.listdir(this)
if "libonnxruntime.so.1.17.1" in files:
if "libonnxruntime.so.1.17.3" in files:
if verbose:
local_print(
"[check_installation_ortcy] weird issue as the "
Expand Down
2 changes: 1 addition & 1 deletion onnx_extended/tools/run_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def bench_virtual(
starting to measure the model
:param repeat: number of iterations to measure
:param modules: modules to install, example:
`modules=[{"onnxruntime": "1.17.1", "onnx": "1.15.0"}]`
`modules=[{"onnxruntime": "1.17.3", "onnx": "1.15.0"}]`
:param filter_fct: to disable some of the configuration
based on the runtime and the installed modules
:param verbose: verbosity
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matplotlib
ml-dtypes
onnx-array-api
onnxmltools
onnxruntime>=1.17.1
onnxruntime>=1.17.3
openpyxl
opt_einsum
packaging
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def get_ext_modules():
# beginning of setup
######################

DEFAULT_ORT_VERSION = "1.17.1"
DEFAULT_ORT_VERSION = "1.17.3"
here = os.path.dirname(__file__)
if here == "":
here = "."
Expand Down
Loading