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

[Bug] Type inference error compiling quantized group convolution on arm_cpu target #16532

Open
lhutton1 opened this issue Feb 7, 2024 · 0 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it topi python/tvm/topi type: bug

Comments

@lhutton1
Copy link
Contributor

lhutton1 commented Feb 7, 2024

Expected behaviour:

When an arm_cpu target is used, the grouped convolution should compile successfully without an error.

Actual behaviour:

When an arm_cpu target is used, the model fails to compile during type inference with:

Incompatible broadcast type TensorType([1, 8, 8, 2], int32) and TensorType([1, 1, 1, 16], int32)
The type inference pass was unable to infer a type for this expression.
This usually occurs when an operator call is under constrained in some way, check other reported errors for hints of what may of happened.

Environment:

Tested with TVM at 6a3fadc. The issue was found as a result of the changes in #16513, however it can be reproduced without as described below.

How to reproduce:

Run the test pytest tests/python/frontend/tflite/test_forward.py -k test_forward_quantized_convolution with an arm_cpu target. Note: reminder to remove any skip condition that exists in the test currently.


Likely group convolution needs to be handled correctly in:

def _qnn_conv2d_legalize_arm_cpu(attrs, inputs, types):

@lhutton1 lhutton1 added type: bug topi python/tvm/topi needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it labels Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it topi python/tvm/topi type: bug
Projects
None yet
Development

No branches or pull requests

1 participant