Skip to content

Arm backend: Replace asserts with exceptions in permutation code #10774

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

Merged
merged 2 commits into from
May 8, 2025

Conversation

Sebastian-Larsson
Copy link
Collaborator

@Sebastian-Larsson Sebastian-Larsson commented May 8, 2025

Refactor assertion statements to raise ValueErrors for better error handling in permutation matrix and vector transformations. Ensure that conditions are checked and appropriate exceptions are raised to enhance code robustness and readability.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Refactor assertion statements to raise ValueErrors for better error
handling in permutation matrix and vector transformations. Ensure that
conditions are checked and appropriate exceptions are raised to enhance
code robustness and readability.

Signed-off-by: Sebastian Larsson <[email protected]>
Change-Id: Ia2816024504b0c31adb3474be26e1a710ee10aa2
@Sebastian-Larsson Sebastian-Larsson added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label May 8, 2025
Copy link

pytorch-bot bot commented May 8, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 26bb20e with merge base 3c21e3a (image):

NEW FAILURE - The following job has failed:

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

zingo commented May 8, 2025

I triggered a rebased after #10776 was merged to make sure it still works.

@zingo zingo merged commit d24eda4 into pytorch:main May 8, 2025
181 checks passed
jhelsby pushed a commit to jhelsby/executorch that referenced this pull request May 9, 2025
…orch#10774)

Refactor assertion statements to raise ValueErrors for better error
handling in permutation matrix and vector transformations. Ensure that
conditions are checked and appropriate exceptions are raised to enhance
code robustness and readability.

Signed-off-by: Sebastian Larsson <[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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants