Skip to content

Arm backend: Refactor TosaArg to use TosaSpecification #10655

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

oscarandersson8218
Copy link
Collaborator

@oscarandersson8218 oscarandersson8218 commented May 2, 2025

Summary

Make TosaArg aware of which TosaSpecification is used. This is used to map torch-dtypes to TOSA-dtypes.

cc @digantdesai @freddan80 @per @zingo

Refactor is_consumer_node_depthwise_conv2d to not use TosaArg.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I8a556ce290242b0a660f56a8f4048cba806817af
Refactor SliceCopySupport to not use TosaArg, but to use torch.fx.Node
instead.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I1d67161d017a5e70348fa1aeaa0857041274bc6d
Refactor TosaArg to take TosaSpecification as an optional input. The
spec is used for mapping torch.dtypes to to TOSA dtypes.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I2d52da4eededc36f8daefb3cb46214e9d374d306
Copy link

pytorch-bot bot commented May 2, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 78b9860 with merge base d7030aa (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 May 2, 2025
@oscarandersson8218 oscarandersson8218 added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels May 2, 2025
@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 May 2, 2025
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.

2 participants