-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[CMSIS-NN] Support for int16 conv2d #12950
Conversation
-Pattern matching and RelayToTIR introduce int16 support -Added new context buffer size APIs for int16 Conv2d -Added int16 variants to integration and buffer size tests Change-Id: I6083ea20b9125a9700a69a93c52c07eb463618b2
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.
Looks great overall! I left some nitpicks (feel free to ignore) and a question below :)
groups = 1 | ||
weight_format = "HWIO" | ||
input_zero_point = input_zero_point if dtype == "int8" else 0 |
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.
Curious, why is this needed?
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.
input_zero_point is not supported by TFLM when dtype == int16. I've added a comment about it. Thanks for pointing out.
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.
Ah I see thanks! Seems like there should be a check in the partitioning for this case
Change-Id: I1956107ff4a52437a525aa34c746acc5e3a31631
Change-Id: I62e67fdbe2781c90e55028ff2da88789623f269a
Thanks @lhutton1 for the review comments. I have added a check for input_zero_point in the partitioner. Could you please take another look? |
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.
Thanks @ashutosh-arm, LGTM!
Support for int16 Conv2d via CMSIS-NN -Pattern matching and RelayToTIR introduce int16 support -Added new context buffer size APIs for int16 Conv2d -Added int16 variants to integration and buffer size tests
Support for int16 Conv2d via CMSIS-NN
-Pattern matching and RelayToTIR introduce int16 support
-Added new context buffer size APIs for int16 Conv2d
-Added int16 variants to integration and buffer size tests
cc @lhutton1 @Mousius @leandron @grant-arm