Skip to content

Cortex-M: preserve unsupported transpose ranks - #22571

Open
rascani wants to merge 1 commit into
pytorch:mainfrom
rascani:rascani/cortex-m-transpose-rank-guard
Open

Cortex-M: preserve unsupported transpose ranks#22571
rascani wants to merge 1 commit into
pytorch:mainfrom
rascani:rascani/cortex-m-transpose-rank-guard

Conversation

@rascani

@rascani rascani commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Keep int8 aten.permute_copy nodes with ranks outside 1–4 on the portable operator. The Cortex-M transpose kernel only supports ranks 1–4, so lowering a rank-5 permutation produced a program that failed when loaded by the runtime.

The existing supported-rank FVP coverage remains unchanged. A new dialect test verifies that a rank-5 int8 permutation stays as aten.permute_copy.

Test plan

source examples/arm/arm-scratch/setup_path.sh && python -m pytest --config-file=backends/arm/test/pytest.ini backends/cortex_m/test/ops/test_transpose.py

lintrunner -m origin/main

AI-assisted: Codex.

Keep int8 permutes with ranks outside 1-4 on portable operators because cortex_m::transpose only supports up to four dimensions. Add a rank-5 dialect regression test.

Authored with Codex.
@rascani rascani added the release notes: none Do not include this in the release notes label Sep 4, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2f7b6fc with merge base 77fb78d (image):
💚 Looks good so far! There are no failures yet. 💚

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 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant