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

Fixes onnx Slice unintentional cast behavior #4319

Merged
merged 1 commit into from Apr 28, 2024

Conversation

geohotstan
Copy link
Contributor

@geohotstan geohotstan commented Apr 27, 2024

fixes #4314

few notes:

This only addresses the reshape error
The reason of the error is that there is a previous slice op that uses a large Tensor(9223372036854775807, dtype=dtypes.long) as the end value, so the Tensor.ceil() used sets it to 0

After this is fixed, this model also requires Exception: op_type ScatterND not supported to run. I remember trying to write a ScatterND but being stuck at some cases.

Copy link
Contributor

This branch currently is behind tinygrad/master. The line count difference bot is disabled.

@geohotstan geohotstan changed the title Fixes onnx Slice unintentional overflow behavior Fixes onnx Slice unintentional cast behavior Apr 27, 2024
@chenyuxyz
Copy link
Collaborator

should not put fix in description as that would close the issue. i am surprise the test case does not cover this. are we disabling it?

@geohot geohot merged commit bc36940 into tinygrad:master Apr 28, 2024
16 checks passed
@geohotstan
Copy link
Contributor Author

should not put fix in description as that would close the issue. i am surprise the test case does not cover this. are we disabling it?

ah crap sorry, yeah the test suite does not test for different dtypes unless if the OP is dtype related.

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.

Latest openpilot .onnx does not compile
3 participants