-
Notifications
You must be signed in to change notification settings - Fork 537
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
[ONNX][MLIR] Add support for onnx.gather op #2726
Conversation
423e76d
to
ce7bb50
Compare
@stellaraccident @rsuderman @vivekkhandelwal1 @renxida Can you please review this PR? |
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 @Shukla-Gaurav, it would be better if you can add a small comment explaining your approach since this is not a straight-forward lowering, and it would be hard for us to understand this by ourselves and then review.
ce7bb50
to
a80d985
Compare
@vivekkhandelwal1 Sure, will add a comment explaining the algorithm in the lowering code itself. Meanwhile you can review it by checking the algorithm here nod-ai/SHARK-ModelDev#242 |
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.
+1 on having the high level description. I can see several constructions being performed but not interpret how this generates a onnx.gather
behavior.
a80d985
to
46343a5
Compare
@rsuderman @vivekkhandelwal1 |
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.
Just some minor nits but LGTM otherwise
This commit adds support for gather op in the onnx pipeline. Signed-Off-by: Gaurav Shukla <[email protected]>
46343a5
to
d721612
Compare
Gather failed again in Shark-TestSuites onnx model opt-125M-awq with and
|
This commit adds support for gather op in the onnx pipeline.
nod-ai/SHARK-ModelDev#242