Skip to content

[Espressif] Lower fused-quant spatial mean to ESP-NN - #25405

Draft
rascani wants to merge 1 commit into
codex/espressif-mlperf-tiny-coveragefrom
codex/espressif-fused-quant-mean
Draft

rascani wants to merge 1 commit into
codex/espressif-mlperf-tiny-coveragefrom
codex/espressif-fused-quant-mean

Conversation

@rascani

@rascani rascani commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Accelerate static int8 means over the spatial dimensions of 4-D tensors with independent input and output quantization parameters. Convert the input to NHWC, run the vendor mean kernel per batch, and restore singleton dimensions for keepdim. Existing permutation cleanup removes redundant conversions after spatial producers. Unsupported reductions and unsafe arithmetic retain portable execution.

Cover lowering, serialization, layout cleanup, arithmetic bounds, strict export, and shared ESP32-S3 cases. Refresh the MLPerf Tiny expectations to accelerate the means in ResNet-8 and MobileNetV1 0.25. Validation: 176 Python checks, four model coverage/serialization tests, 19 ESP32-S3 emulator cases, and changed-file lint passed.

Authored with OpenAI Codex.

Accelerate static int8 means over the spatial dimensions of 4-D tensors with independent input and output quantization parameters. Convert the input to NHWC, run the vendor mean kernel per batch, and restore singleton dimensions for keepdim. Existing permutation cleanup removes redundant conversions after spatial producers. Unsupported reductions and unsafe arithmetic retain portable execution.

Cover lowering, serialization, layout cleanup, arithmetic bounds, strict export, and shared ESP32-S3 cases. Refresh the MLPerf Tiny expectations to accelerate the means in ResNet-8 and MobileNetV1 0.25. Validation: 176 Python checks, four model coverage/serialization tests, 19 ESP32-S3 emulator cases, and changed-file lint passed.

Authored with OpenAI Codex.
@rascani
rascani added this pull request to stack #25262 November 21, 2026 02:05
@pytorch-bot

pytorch-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 3 Cancelled Jobs, 1 Pending, 1 Unrelated Failure

As of commit 735aedb with merge base 351e938 (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following job failed but were 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 Nov 21, 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.

This branch was previously deployed

1 inactive deployment
cadence — 735aedb0 Deployed Nov 21, 2026 by rascani via hifi-op-test / hifi4 #39855
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