-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[mlir][bufferization] Empty tensor elimination based on SubsetOpInterface #65766
[mlir][bufferization] Empty tensor elimination based on SubsetOpInterface #65766
Conversation
mlir/include/mlir/Dialect/Bufferization/IR/SubsetOpInterface.td
Outdated
Show resolved
Hide resolved
"tensor.empty" ops cannot be bufferized. They can either be converted to | ||
"bufferization.alloc_tensor" or replaced with another tensor (via this | ||
transform). "tensor.empty" does not specify the contents of the returned |
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 wondering why you are replacing back ticks with "?
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.
I think backticks are used when referring to function/variable names only.
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.
Interesting, I often do the exact opposite. Is there a written guideline somewhere?
…face This commit generalizes empty tensor elimination to operate on subset ops. No new test cases are added because all current subset ops were already supported by previously. From this perspective, this change is NFC. A new interface method (and a helper method) are added to `SubsetOpInterface` to build the subset of the destination tensor.
97c2c4c
to
f40a969
Compare
…face (llvm#65766) This commit generalizes empty tensor elimination to operate on subset ops. No new test cases are added because all current subset ops were already supported previously. From this perspective, this change is NFC. A new interface method (and a helper method) are added to `SubsetInsertionOpInterface` to build the subset of the destination tensor.
…face (llvm#65766) This commit generalizes empty tensor elimination to operate on subset ops. No new test cases are added because all current subset ops were already supported previously. From this perspective, this change is NFC. A new interface method (and a helper method) are added to `SubsetInsertionOpInterface` to build the subset of the destination tensor.
This commit generalizes empty tensor elimination to operate on subset ops. No new test cases are added because all current subset ops were already supported previously. From this perspective, this change is NFC.
A new interface method (and a helper method) are added to
SubsetInsertionOpInterface
to build the subset of the destination tensor.