Skip to content

Comments

[TorchToLinalg] Improve OnnxVariantRotaryEmbeddingOp lowering#4458

Merged
IanWood1 merged 3 commits intollvm:mainfrom
IanWood1:rotary-embedding-rank3-dynamic
Feb 17, 2026
Merged

[TorchToLinalg] Improve OnnxVariantRotaryEmbeddingOp lowering#4458
IanWood1 merged 3 commits intollvm:mainfrom
IanWood1:rotary-embedding-rank3-dynamic

Conversation

@IanWood1
Copy link
Contributor

@IanWood1 IanWood1 commented Feb 6, 2026

Extend OnnxVariantRotaryEmbeddingOp lowering to handle rank-3 input (batch, seq, hidden) in addition to rank-4, support dynamic batch and sequence dimensions, and apply an optional scale multiplier. Rank-3 inputs are reshaped to rank-4 for the linalg.generic computation and reshaped back afterward.

…aryEmbedding

Extend OnnxVariantRotaryEmbeddingOp lowering to handle rank-3 input
(batch, seq, hidden) in addition to rank-4, support dynamic batch and
sequence dimensions, and apply an optional scale multiplier. Rank-3
inputs are reshaped to rank-4 for the linalg.generic computation and
reshaped back afterward.
Signed-off-by: Ian Wood <ianwood@u.northwestern.edu>
Signed-off-by: Ian Wood <ianwood@u.northwestern.edu>
@IanWood1 IanWood1 marked this pull request as ready for review February 10, 2026 03:07
@IanWood1 IanWood1 requested a review from Groverkss February 10, 2026 17:09
@IanWood1 IanWood1 merged commit 025843e into llvm:main Feb 17, 2026
3 checks passed
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.

2 participants