Skip to content

Fix corner-cases with ndonnx.{any,all,arange} and __setitem__#144

Merged
Christian Bourjau (cbourjau) merged 7 commits into
mainfrom
issue-142a
Jun 9, 2025
Merged

Fix corner-cases with ndonnx.{any,all,arange} and __setitem__#144
Christian Bourjau (cbourjau) merged 7 commits into
mainfrom
issue-142a

Conversation

@cbourjau
Copy link
Copy Markdown
Collaborator

@cbourjau Christian Bourjau (cbourjau) commented Jun 4, 2025

This PR fixes the corner cases discovered by #142 and some more.

This turned out to be one big annoying chore. There was one legitimate bug in __setitem__ where we failed to validate an invalid key. Everything else is just working around ... surprising ... quirks in the onnxruntime. I also started to add the test cases discovered by Hypothesis as explicit tests to the test suite.

A follow-up to this PR can be found in the reorganize-ci branch which is based on this PR. It runs the extensive array-api test suite on this PR in the hope that we finally pass the scheduled runs without discovering a new issue.

Comment thread CHANGELOG.rst Outdated
Comment thread ndonnx/_typed_array/onnx.py Outdated
@cbourjau Christian Bourjau (cbourjau) changed the title Fix corner-cases with ndonnx.{any,all,arange} Fix corner-cases with ndonnx.{any,all,arange} and __setitem__ Jun 5, 2025
@cbourjau Christian Bourjau (cbourjau) merged commit 07fb35b into main Jun 9, 2025
45 checks passed
@cbourjau Christian Bourjau (cbourjau) deleted the issue-142a branch June 9, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants