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

[TorchToLinalg] Merge indices and pooling computation into one linalg generic op #3701

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lingzhiz1998
Copy link
Contributor

As discussed in #3652, we should use one linalg generic op to represent maxpool with indices op.

@lingzhiz1998 lingzhiz1998 force-pushed the lingzhi/reimplement_maxpoolwithindices branch from 1bd975c to ae1fa20 Compare September 20, 2024 02:48
@lingzhiz1998
Copy link
Contributor Author

@vivekkhandelwal1 any comments? Thanks!

@vivekkhandelwal1
Copy link
Collaborator

@vivekkhandelwal1 any comments? Thanks!

Let me review it thoroughly today. I will respond after that.

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 @zjgarvey, can you please review this PR when you get time? Since for me it's really hard to understand what are we trying to achieve through these changes. I think you asked for this (probably?) here #3652 (review). I'm slightly concerned about introducing scf.if op and whether that's actually required or not.

Excluding this, there are only 2 Torch->Linalg lowering which contains op from the scf dialect, one of which is multinomial which Mahesh was saying that should not have been lowered that way.

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