Skip to content

Cortex-M: add explicit-NHWC runtime operators - #21965

Draft
rascani wants to merge 2 commits into
gh/rascani/10/headfrom
gh/rascani/11/head
Draft

Cortex-M: add explicit-NHWC runtime operators#21965
rascani wants to merge 2 commits into
gh/rascani/10/headfrom
gh/rascani/11/head

Conversation

@rascani

@rascani rascani commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Add fixed-layout NHWC-logical schemas for quantized convolution, depthwise convolution, transpose convolution, average pooling, max pooling, and padding.

Each wrapper lives beside its legacy entry point and selects NHWCLogical in the shared implementation, so operator identity carries the serialized layout contract without a general-purpose runtime parameter. Register the schemas, Python reference implementations, scratch sizing, selective runner entries, and host and FVP coverage.

Harden both padding entry points by validating rank and four-element padding before indexing and by reporting the actual entry-point name.

All six explicit-NHWC cases on Cortex-M55 and Cortex-M33 FVPs, selective-runner cross-builds, and lintrunner.

Authored with Codex.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 3 New Failures, 1 Unclassified Failure

As of commit 494983f with merge base 1b2838b (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

  • Labeler / label (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    ##[error]HttpError: API rate limit exceeded for installation. If you reach out to GitHub Support for help, please include the request ID 9818:3777E:52E8F6:6B5077:6A868829 and timestamp 2026-08-20 04:52:57 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service)

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant