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

Generalize scaled MatMul fusion #489

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Generalize scaled MatMul fusion #489

merged 2 commits into from
Dec 27, 2024

Conversation

robertknight
Copy link
Owner

Fuse all patterns of the form Scale(MatMul(Scale(X), Scale(Y))) where
Scale(X) is an optional Mul or Div operation where one of the arguments is
a scalar. Previously only two specific cases of this pattern were handled.

Fixes #488

Fuse all patterns of the form `Scale(MatMul(Scale(X), Scale(Y)))` where
`Scale(X)` is an optional `Mul` or `Div` operation where one of the arguments is
a scalar. Previously only two specific cases of this pattern were handled.

Fixes #488
@robertknight robertknight merged commit a33e0db into main Dec 27, 2024
2 checks passed
@robertknight robertknight deleted the generalize-matmul-scale branch December 27, 2024 09:17
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.

Generalize scaled MatMul fusion
1 participant