Skip to content

Conversation

@mansnils
Copy link
Collaborator

@mansnils mansnils commented Mar 11, 2025

Adds TOSA support for logical not in Arm backend.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Change-Id: I5bc8e68561e1403a2de388a3a0fd1f4435401ea9
Signed-off-by: Måns Nilsson <mans.nilsson@arm.com>
@mansnils mansnils added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing labels Mar 11, 2025
@mansnils mansnils requested a review from digantdesai as a code owner March 11, 2025 08:34
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 11, 2025

🔗 Helpful Links

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

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

❌ 4 New Failures, 1 Cancelled Job

As of commit eef03c7 with merge base e86c9c9 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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 Mar 11, 2025
@YufengShi-dudu
Copy link
Collaborator

YufengShi-dudu commented Mar 11, 2025

LGTM
The failures on test-arm-backend-delegation and test-arm-reference-delegation are not introduced by this PR.
The other failures are unrelated.

@YufengShi-dudu
Copy link
Collaborator

All the failures are unrelated to this commit.

@YufengShi-dudu YufengShi-dudu merged commit 03f064b into pytorch:main Mar 12, 2025
119 of 124 checks passed
@swolchok
Copy link
Contributor

https://hud.pytorch.org/hud/pytorch/executorch/main/1?per_page=50&name_filter=-arm&mergeLF=true says this PR broke test-arm-reference-delegation and unittest-arm

@YufengShi-dudu
Copy link
Collaborator

Hi @swolchok, thanks for pointing out the issue.

After supporting the logical not op, the graph in test_conformer.py seems to have 8 "torch.ops.higher_order.executorch_call_delegate" now.

We will double check this and create a patch to fix the failures.

Thank you!

YufengShi-dudu added a commit to YufengShi-dudu/executorch that referenced this pull request Mar 13, 2025
1. Implement a pass ConvertAnyDefaultDimDimsPass to decompose
   any.default, any.dim and any.dims into a sequence of any.dim
   with keepdim=True and a squeeze_copy.dims if needed

2. Implement a NodeVisitor to lower any.dim to REDUCE_ANY in TOSA

3. Fix the failures in pytorch#9128

Change-Id: Ifb6672f2c017cd7365e76319795290a36909657c
Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
per pushed a commit that referenced this pull request Mar 13, 2025
1. Implement a pass ConvertAnyDefaultDimDimsPass to decompose
   any.default, any.dim and any.dims into a sequence of any.dim
   with keepdim=True and a squeeze_copy.dims if needed

2. Implement a NodeVisitor to lower any.dim to REDUCE_ANY in TOSA

3. Fix the failures in #9128

Change-Id: Ifb6672f2c017cd7365e76319795290a36909657c
Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
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.

4 participants