-
Notifications
You must be signed in to change notification settings - Fork 651
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
[tosa] failed to legalize operation 'arith.extsi' #19402
Comments
It appears that unsigned types (for example, |
Oof. Mobilenet regression is not good. We're lacking test coverage for TOSA / TFLite (iree-org/iree-test-suites#5) Commit range: iree-3.1.0rc20241205...iree-3.1.0rc20241206 . The PR that Ian linked is likely the culprit, coming in via 0f0cac5 |
@lundong where is this IR coming from? The linked IR contains the |
It was converted from a Mobilenet V1 quantized TFLite model by iree-import-tflite. The TFLite model can be found at https://tfhub.dev/tensorflow/lite-model/mobilenet_v1_0.25_224_quantized/1/default/1?lite-format=tflite |
I don't think we've made any progress on fixing the regression, but I did just put together some tests that demonstrate the issue and will let us guard against similar regressions in the future: iree-org/iree-test-suites#59 |
Progress on #5. This contains two simple test cases for demonstration purposes, one of which is currently failing due to a regression: iree-org/iree#19402. The test suite follows the same structure as the onnx_models test suite in this repository. Some cleanup and refactoring will be more evident as this grows. We could for example share the `compile_mlir_with_iree` helper function between both test suites.
What happened?
When we compile some mlir models via iree-compile, it returned the error messages like:
:0: error: loc("main"): 'arith.extsi' op operand #0 must be signless-fixed-width-integer-like, but got 'ui8'
:0: note: loc("main"): see current operation: %946 = "arith.extsi"(%arg423) : (ui8) -> i32
It has occured since iree-3.1.0rc20241206. Previous IREE revisions were okay.
Steps to reproduce your issue
:0: error: loc("main"): 'arith.extsi' op operand #0 must be signless-fixed-width-integer-like, but got 'ui8'
:0: note: loc("main"): see current operation: %946 = "arith.extsi"(%arg423) : (ui8) -> i32
mobilenet_v1.zip
What component(s) does this issue relate to?
Compiler
Version information
iree-3.1.0rc20241206.
Additional context
This issue has occured since iree-3.1.0rc20241206. Previous IREE revisions were okay.
The text was updated successfully, but these errors were encountered: