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

Added support for Maxpool (Autopad) #3774

Merged
merged 5 commits into from
Oct 23, 2024

Conversation

sriram-siloai
Copy link
Contributor

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

@sriram-siloai
Copy link
Contributor Author

@vivekkhandelwal1 : I have made the necessary changes and pushed in the latest commit. Could you review it again. Thanks.

Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a 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.

Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a 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.

@sriram-siloai sriram-siloai reopened this Oct 23, 2024
@vivekkhandelwal1 vivekkhandelwal1 enabled auto-merge (squash) October 23, 2024 12:56
@vivekkhandelwal1 vivekkhandelwal1 merged commit d6feb21 into llvm:main Oct 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants