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

Fix lowering of ONNX.Mul to tosa.mul when rank-broadcasting #22

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

mgehre-amd
Copy link
Collaborator

We used to lower "onnx.Mul"(%arg0, %arg1) : (tensor<13x21x1xf32>, tensor<21x1xf32>) into tosa.mul (tensor<13x21x1xf32>, tensor<21x1xf32>) -> tensor<13x21x1xf32>, which is not allowed (ranks mismatch on tosa)

@mgehre-amd mgehre-amd requested review from ttjost and TinaAMD December 21, 2023 08:33
Copy link
Collaborator

@TinaAMD TinaAMD left a comment

Choose a reason for hiding this comment

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

LGTM

@mgehre-amd mgehre-amd removed the request for review from ttjost December 21, 2023 12:59
@mgehre-amd mgehre-amd merged commit db951e0 into feature/onnx-to-tosa Dec 21, 2023
4 checks passed
@mgehre-amd mgehre-amd deleted the matthias.onnx_to_tosa_mul branch December 21, 2023 12:59
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