Skip to content

Cortex-M backend: Support standalone clamp-type activations#18767

Open
xingguo01 wants to merge 1 commit intopytorch:mainfrom
xingguo01:cortex-m-non-fused-clamp
Open

Cortex-M backend: Support standalone clamp-type activations#18767
xingguo01 wants to merge 1 commit intopytorch:mainfrom
xingguo01:cortex-m-non-fused-clamp

Conversation

@xingguo01
Copy link
Copy Markdown
Collaborator

@xingguo01 xingguo01 commented Apr 8, 2026

  • Add support for quantized clamp-type activations in the Cortex-M pipeline by canonicalizing relu/hardtanh/clamp to quantized aten.clamp.default for standalone int8 paths
  • Extend activation fusion to cover max_pool2d.

@freddan80 @per @zingo @oscarandersson8218 @digantdesai @Sebastian-Larsson @AdrianLundell @psiddh

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

- Add support for quantized clamp-type activations in the Cortex-M
pipeline by canonicalizing relu/hardtanh/clamp to quantized
aten.clamp.default for standalone int8 paths
- Extend activation fusion to cover max_pool2d.

Change-Id: Iaf770e68d43c6270065c914424290aba01451ec2
Signed-off-by: Xingguo Li <xingguo.li@arm.com>
@xingguo01 xingguo01 requested a review from rascani as a code owner April 8, 2026 09:22
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Apr 8, 2026

🔗 Helpful Links

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

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

❌ 3 New Failures, 2 Cancelled Jobs, 2 Unrelated Failures

As of commit 55edd9e with merge base e109ac8 (image):

NEW FAILURES - The following jobs have failed:

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

BROKEN TRUNK - The following jobs 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 Apr 8, 2026
@xingguo01 xingguo01 added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate labels Apr 8, 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. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant