-
Notifications
You must be signed in to change notification settings - Fork 605
[TorchToLinalg] Support AtenReplicationPad1d with lowering to linalg backend #4217
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
Conversation
47089ef
to
e2e701b
Compare
Would appreciate a review - @vivekkhandelwal1 | @stellaraccident | @penguin-wwy |
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 PR!
I'm not entirely sure about the original motivation for the 2d lowering, but 3 different concat ops seems like an expensive way to perform padding.
I'm not going to block this either way. The PR looks good in general, and it would make more sense to add a lowering consistent with the 2d op first, and follow up with a separate patch to improve the implementation if desired.
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
c8af8a9
to
4a9bc26
Compare
Signed-off-by: Zahid Wakeel <zahid.wakeel@multicorewareinc.com>
04aa077
to
691eb58
Compare
My approval still stands, do you want me to merge? |
Yes please @zjgarvey |
This PR takes care of #4216.
AtenReplicationPad1d
support intorch
dialect.tensor.extract_slice
ops for left & right slicestensor.concat
ops to expand each slice into right shape and join all slices in orderAtenPadOp
decomposition to make use of 1d replication pad instead of using 2d variant.xfail
sets.