Skip to content

Conversation

@per
Copy link
Collaborator

@per per commented Jul 3, 2025

Summary

Adds a TOSA backend dialect so it's possible to convert Edge IR to specific TOSA operators in the Arm backends. This is done to enable control of types and additional arguments available for TOSA operators in comparison with the Edge IR.
The operators are registered into the exir.backend.tosa namespace and is only traceable, not executable since it's only used in the lowering step to a TOSA serialization format.

Test plan

Existing CI tests

cc @digantdesai @freddan80 @zingo @oscarandersson8218

Adds a TOSA backend dialect so it's possible to convert Edge IR to
specific TOSA operators in the ARM backends. This is done to enable
control of types and additional arguments available for TOSA operators
in comparison with the Edge IR.
The operators are registered into the exir.backend.tosa namespace and
is only traceable, not executable since it's only used in the
lowering step to a TOSA serialization format.

Signed-off-by: Per Åstrand <[email protected]>
Change-Id: I79f1fd4dbc00465f329df5b0f31d0788d729e0a9
@per per requested a review from digantdesai as a code owner July 3, 2025 14:14
@per per added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing release notes: none Do not include this in the release notes labels Jul 3, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 3, 2025

🔗 Helpful Links

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

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

❌ 2 Cancelled Jobs, 1 Pending, 2 Unrelated Failures

As of commit a5ec1b2 with merge base 29858b4 (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jul 3, 2025
@zingo
Copy link
Collaborator

zingo commented Jul 4, 2025

Test fails unrelated and fails on main and in other PRS

@zingo zingo merged commit f858e0d into pytorch:main Jul 4, 2025
193 of 198 checks passed
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
### Summary
Adds a TOSA backend dialect so it's possible to convert Edge IR to
specific TOSA operators in the Arm backends. This is done to enable
control of types and additional arguments available for TOSA operators
in comparison with the Edge IR.
The operators are registered into the exir.backend.tosa namespace and is
only traceable, not executable since it's only used in the lowering step
to a TOSA serialization format.

### Test plan
Existing CI tests

Signed-off-by: Per Åstrand <[email protected]>
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 release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants