-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Relay][TFLite] Fix in qnn.conv2d when parameter groups not equal to 1 #15472
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
Conversation
19014bd to
0a30d26
Compare
|
@tvm-bot rerun |
|
Thanks @padreofthegame for fixing this! Would you mind providing more detail in the commit message body as per our commit message guideline, as in, what is the expected behaviour and what was happening before that bugfix? |
|
Hello @ekalda, thank you for the comment. I will try to explain my observations on this problem. Basically, I was working with simple quantized tflite model with conv2D and bias_add layer, which was working fine with parameter While further testing I realized that problem occures every time when the parameter Since the In solution, I just added an additional if statement that will check if the convolution is depthwise (similar to the code in Conv2dRel), and kept the current workflow, while in other case the shape of |
|
Thanks for the explanation, makes sense to me :) What I was asking was to amend the commit message body as I don't think "There was a bug" is particularly informative in the commit history and doesn't really comply with the commit message guidelines. Some version of what you wrote in the explaining comment (without the stack trace) would do :) |
…to 1 Currently, qnn.conv2d only supports parameter GROUPS to be equal 1 or depth of the input tensor, while in any other case (which is valid for parameter GROUPS) it results in Relay type checker missmatch error related to types[5] argument. This fix expands qnn.conv2d functionality for other valid values of parameter GROUPS.
0a30d26 to
33b747b
Compare
ekalda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Thanks @padreofthegame! |
Bug observed in TFLite frontend when working with quantized conv2d operator with parameter groups != 1