-
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
int32 pooling with int64 shapes #6687
int32 pooling with int64 shapes #6687
Conversation
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.
This PR addresses a deeply underlying issue that results in incorrect data types during model compilation. Thanks for diving deep into the bug and the fix!
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.
Awesome work @mbrookhart, thanks for the fix.
* Failing tests for Int32 avg_pooling with Int64 shapes * fix pooling implementations
* Failing tests for Int32 avg_pooling with Int64 shapes * fix pooling implementations
* Failing tests for Int32 avg_pooling with Int64 shapes * fix pooling implementations
* Failing tests for Int32 avg_pooling with Int64 shapes * fix pooling implementations
We found some quantized models that were performing Int32 average pooling with input tensors that had Int64 shapes. This caused an error in te where the resulting computations were implicitly up cast from int32 to int64 due to the way the topi functions were handling input shapes.
This PR adds unit tests that hit the error and provides fixes for the currently implemented ops.
@tmoreau89 @jwfromm @junrushao1994