-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Torch Dialect] Support Einsum Op #2230
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 is a really complex decomposition. Good job getting it working! Initial set of comments
@ramiro050 I just refactor the code, could you please review it again? |
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.
A few more comments
@ramiro050 Could you please review this pr again? Thank you! |
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.
A few comments plus a question. Can we make sure that all einsum ops like matmul or Hadamard product pass this decomposition pattern, e.g., an einsum op with equation "abc,abc->"?
matmul should be okay but right now the algorithm are not able to deal with the case like abc, abc-> abc |
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.
Looks mostly good to me, just one question
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.
Thanks for the hard work on this op 🙂
As title, support torch.aten.einsum op
Right now only support Static Shape, because of the known issue, the fixed solution is here: #2154
Co-authored-by: Jiawei Wu wujiawei.aml@bytedance.com