Skip to content

[TorchToLinalg] Support lowering AtenMaxUnpool2dOp for linalg backend #4265

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

Merged
merged 4 commits into from
Aug 7, 2025

Conversation

vinitdeodhar
Copy link
Contributor

The change adds support to lower AtenMaxUnpool2dOp for linalg backend. Existing lowering for AtenMaxUnpool3dOp is refactored such that 2d/3d variants share utils

Unlike max_unpool3d, max_unpool2d does not support specification of stride, padding
torch op registry

The default values of stride and padding
https://docs.pytorch.org/docs/stable/generated/torch.nn.MaxUnpool2d.html

Closes #4255

@vinitdeodhar
Copy link
Contributor Author

@vivekkhandelwal1 , @zjgarvey , @sahas3 can you please provide a review ?

@sahas3 sahas3 requested review from zjgarvey, vivekkhandelwal1 and sahas3 and removed request for zjgarvey July 16, 2025 20:58
@vinitdeodhar
Copy link
Contributor Author

@vivekkhandelwal1 , @zjgarvey , @sahas3 can you please review the PR ?

@vinitdeodhar
Copy link
Contributor Author

@vivekkhandelwal1 , @zjgarvey can you please review ?

Copy link
Collaborator

@zjgarvey zjgarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me. I just have a few nits about variable names.

@vinitdeodhar
Copy link
Contributor Author

@zjgarvey , @sahas3 thanks for your feedback, can you help merge this change ?

@zjgarvey zjgarvey merged commit 8809167 into llvm:main Aug 7, 2025
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.

[TorchToLinalg] Add support for AtenMaxUnpool2dOp and conversion to linalg dialect
3 participants