-
Notifications
You must be signed in to change notification settings - Fork 522
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
Added support for Maxpool (Autopad) #3774
Conversation
…e reviewer comment
@vivekkhandelwal1 : I have made the necessary changes and pushed in the latest commit. Could you review it again. Thanks. |
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.
Except that one comment, I would also like you to add a lit test here https://github.com/llvm/torch-mlir/blob/main/test/Conversion/TorchOnnxToTorch/simple_ops_g_to_p.mlir for the given feature to be tested. Rest all, looks good to me.
…me_lower, same_upper, precomputed_same_upper
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.
Hi @sriram-siloai, thanks for the patch. This patch can be merged once you address that last comment.
I hope the padding is also numerically correct. If you find some time, then please try to add an E2E test here: https://github.com/nod-ai/SHARK-TestSuite/ to test the robustness of your patch.
Added autopad. and passed 3 tests
test_maxpool_2d_precomputed_same_upper
test_maxpool_2d_same_lower'
test_maxpool_2d_same_upper
Address : nod-ai/SHARK-ModelDev#843
2 attributes yet to complete : storage_order, indices output