Skip to content

Arm backend: unskip dim_None sum tests on U55/U85 - #22950

Open
psiddh wants to merge 1 commit into
pytorch:mainfrom
psiddh:sidart/arm-sum-unskip-dim-none-clean
Open

psiddh wants to merge 1 commit into
pytorch:mainfrom
psiddh:sidart/arm-sum-unskip-dim-none-clean

Conversation

@psiddh

@psiddh psiddh commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Pass dim/keepdim via module init instead of as model inputs, since bundled_program cannot serialize None as a model input. Removes the _dim_none_skips markers covering dim_None and dim_None_4d_tensor on test_sum_u55/u85_INT_1_0 (8 cases).

Verification: py_compile passes. Full pytest collection fails locally on this checkout with a pre-existing torch incompatibility (aten.transpose Dimname, present with and without this change); relying on CI for test signal.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Copilot AI lite review requested due to automatic review settings September 20, 2026 00:13
@psiddh
psiddh requested a review from digantdesai as a code owner September 20, 2026 00:13
@pytorch-bot

pytorch-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 8f63fc6 with merge base 11120c8 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was 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.

@meta-cla meta-cla 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 Sep 20, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Sep 20, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Remove the shared check_count.exir stage from the affected rejection-test path.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates Arm sum tests to pass dim and keepdim through module initialization, enabling previously skipped dim=None U55/U85 cases.

Changes:

  • Refactors sum test inputs and pipelines.
  • Removes U55/U85 dim=None skips.
  • Adjusts rejection-test pipeline handling.
File Summary
backends/​arm/​test/​ops/​test_sum.py Refactors sum parameter handling and restores skipped coverage; rejection tests need the shared check_count.exir stage removed.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +212 to +213
Sum(dim, keepdim),
(test_tensor,),
Pass dim/keepdim via module __init__ instead of as model inputs, since
bundled_program cannot serialize None as a model input. Removes the
_dim_none_skips markers covering dim_None and dim_None_4d_tensor on
test_sum_u55/u85_INT_1_0 (8 cases).
Copilot AI review requested due to automatic review settings September 20, 2026 07:46
@psiddh
psiddh force-pushed the sidart/arm-sum-unskip-dim-none-clean branch from 53776d8 to 8f63fc6 Compare September 20, 2026 07:46
@psiddh

psiddh commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Good catch — the refactor accidentally dropped pipeline.pop_stage("check_count.exir") in test_sum_u55_INT_failure_set. Restored in 8f63fc6. These oversized-shape cases intentionally produce zero delegates, so the default check_count.exir stage (which expects exactly one executorch_call_delegate) would fail before validating the rejection.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: 1 Medium severity

Open (1)

This branch has not been deployed

No deployments
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. module: arm Issues related to arm backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants