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

[PromotePadsToL1] Implement pass lowering tensor.pad #119

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

zero9178
Copy link
Member

tensor.pad, as we produce them, can be lowered to start_tensor_copy. The latter will perform the L1 allocation and copy operations during bufferization.

The one not-nice part of the pass is that it does so indiscriminately for all tensor.pad operations. I am very unsure about whether there are any guarantees by IREE that'd never encounter tensor.pad operations in kernels.

This was also the last pass required to compile the last kernel in NsNet2

`tensor.pad`, as we produce them, can be lowered to `start_tensor_copy`. The latter will perform the L1 allocation and copy operations during bufferization.

The one not-nice part of the pass is that it does so indiscriminately for all `tensor.pad` operations. I am very unsure about whether there are any guarantees by IREE that'd never encounter `tensor.pad` operations in kernels.

This was also the last pass required to compile the last kernel in NsNet2
@zero9178 zero9178 merged commit 6db2996 into main Aug 21, 2024
1 check passed
@zero9178 zero9178 deleted the promote-pad branch August 21, 2024 12:37
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.

1 participant