Skip to content

Fixes Array API with onnxruntime #3

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

Merged
merged 10 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
better error message
  • Loading branch information
xadupre committed Jun 3, 2023
commit 8068ea9611097c6a4a5e8dbc9d9d80d8c24c6ec2
7 changes: 7 additions & 0 deletions CHANGELOGS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Change Logs
===========

0.2.0
+++++

* :pr:`3`: fixes Array API with onnxruntime
1 change: 1 addition & 0 deletions _doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ well as to execute it.
tutorial/index
api/index
auto_examples/index
../CHANGELOGS

Sources available on
`github/onnx-array-api <https://github.com/sdpython/onnx-array-api>`_,
Expand Down
5 changes: 4 additions & 1 deletion onnx_array_api/npx/npx_jit_eager.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ def jit_call(self, *values, **kwargs):
try:
res = fct.run(*values)
except Exception as e:
from ..plotting.text_plot import onnx_simple_text_plot

text = onnx_simple_text_plot(self.onxs[key])
raise RuntimeError(
f"Unable to run function for key={key!r}, "
f"types={[type(x) for x in values]}, "
Expand All @@ -375,7 +378,7 @@ def jit_call(self, *values, **kwargs):
f"kwargs={kwargs}, "
f"self.input_to_kwargs_={self.input_to_kwargs_}, "
f"f={self.f} from module {self.f.__module__!r} "
f"onnx={self.onxs[key]}."
f"onnx=\n---\n{text}\n---\n{self.onxs[key]}"
) from e
self.info("-", "jit_call")
return res
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy