Skip to content

Arm backend: Add validate_valid_dtype #11472

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 1 commit into
base: main
Choose a base branch
from

Conversation

Sebastian-Larsson
Copy link
Collaborator

@Sebastian-Larsson Sebastian-Larsson commented Jun 9, 2025

Add a new validate_valid_dtype helper in operator_validation_utils to centralize and standardize dtype validation logic across all ARM backend operators. Manual, duplicated dtype checks in individual operator visitors have been replaced with calls to validate_valid_dtype.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Add a new validate_valid_dtype helper in operator_validation_utils to
centralize and standardize dtype validation logic across all ARM backend
operators. Manual, duplicated dtype checks in individual operator
visitors have been replaced with calls to validate_valid_dtype.

Signed-off-by: Sebastian Larsson <[email protected]>
Change-Id: I4ba6d0bd11474fa41e75637563e603b5cc080f63
@Sebastian-Larsson Sebastian-Larsson added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: none Do not include this in the release notes labels Jun 9, 2025
Copy link

pytorch-bot bot commented Jun 9, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit da8dc2c with merge base e02ca41 (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 Jun 9, 2025
@zingo
Copy link
Collaborator

zingo commented Jun 10, 2025

@Sebastian-Larsson this seem to need a rebase :(

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