Skip to content

[Codegen][Tuner] expose python binding isa_attention_op - #21216

Merged
bangtianliu merged 3 commits into
iree-org:mainfrom
bangtianliu:isa_attention_op
Jun 30, 2025
Merged

bangtianliu merged 3 commits into
iree-org:mainfrom
bangtianliu:isa_attention_op

Conversation

@bangtianliu

Copy link
Copy Markdown
Contributor

This PR is mainly about exposing the python binding iree_codegen.isa_attention_op.

@bangtianliu
bangtianliu requested a review from benvanik as a code owner June 26, 2025 23:21
@bangtianliu
bangtianliu requested review from Max191 and kuhar June 26, 2025 23:21
Signed-off-by: Bangtian Liu <[email protected]>

@Max191 Max191 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a new util for this? Can't we just check isinstance(op, linalg_ext.AttentionOp)?

@bangtianliu

Copy link
Copy Markdown
Contributor Author

Do we really need a new util for this? Can't we just check isinstance(op, linalg_ext.AttentionOp)?

At the Python level, I couldn't find linalg_ext.AttentionOp exposed. Please correct me if I'm misunderstanding something.

@Max191

Max191 commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

At the Python level, I couldn't find linalg_ext.AttentionOp exposed. Please correct me if I'm misunderstanding something.

I see, I think this is okay for now then. Might be better to just expose the op itself instead, but maybe that can just be TODO.

Signed-off-by: Bangtian Liu <[email protected]>
@bangtianliu
bangtianliu merged commit 63f625d into iree-org:main Jun 30, 2025
bangtianliu added a commit to nod-ai/amd-shark-ai that referenced this pull request Jul 2, 2025
After iree-org/iree#21170 and
iree-org/iree#21216 exposing python bindings
from iree side, This PR adds parser for attention op.

---------

Signed-off-by: Bangtian Liu <[email protected]>
rkayaith pushed a commit to rkayaith/shark-ai that referenced this pull request Aug 19, 2025
After iree-org/iree#21170 and
iree-org/iree#21216 exposing python bindings
from iree side, This PR adds parser for attention op.

---------

Signed-off-by: Bangtian Liu <[email protected]>
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
This PR is mainly about exposing the python binding
`iree_codegen.isa_attention_op`.

---------

Signed-off-by: Bangtian Liu <[email protected]>
RattataKing pushed a commit to nod-ai/amd-shark-ai that referenced this pull request Mar 2, 2026
After iree-org/iree#21170 and
iree-org/iree#21216 exposing python bindings
from iree side, This PR adds parser for attention op.

---------

Signed-off-by: Bangtian Liu <[email protected]>
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.

3 participants