Skip to content

Conversation

@Sebastian-Larsson
Copy link
Collaborator

aten.mm does not support input or output tensors of rank 3, which is
required by TOSA for the MM operation. Therefore, create a pass that
converts any MM nodes to BMM (which always has rank 3). The pass also
unsqueezes tensors of rank 2 to rank 3.

As a result of the new pass, op_mm.py is no longer required and has
been removed.

Signed-off-by: Sebastian Larsson [email protected]

@Sebastian-Larsson Sebastian-Larsson added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Dec 17, 2024
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 17, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7341

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit c704647 with merge base b16271c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 17, 2024
@Sebastian-Larsson
Copy link
Collaborator Author

@pytorchbot label ciflow/trunk

@freddan80
Copy link
Collaborator

Rebase pls

@Sebastian-Larsson
Copy link
Collaborator Author

Rebase done!

@freddan80
Copy link
Collaborator

Rebase pls

aten.mm does not support input or output tensors of rank 3, which is
required by TOSA for the MM operation. Therefore, create a pass that
converts any MM nodes to BMM (which always has rank 3). The pass also
unsqueezes tensors of rank 2 to rank 3.

As a result of the new pass, op_mm.py is no longer required and has
been removed.

Signed-off-by: Sebastian Larsson <[email protected]>
Change-Id: I8459dd73bb366452b5139b48a5724c300b2d5a26
@Sebastian-Larsson
Copy link
Collaborator Author

Rebase done

@freddan80 freddan80 merged commit 05abf89 into pytorch:main Jan 9, 2025
107 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants