Skip to content

Cortex-M backend: Optimize quantizer pattern matching#16700

Merged
AdrianLundell merged 1 commit intopytorch:mainfrom
AdrianLundell:change-1179397
Jan 21, 2026
Merged

Cortex-M backend: Optimize quantizer pattern matching#16700
AdrianLundell merged 1 commit intopytorch:mainfrom
AdrianLundell:change-1179397

Conversation

@AdrianLundell
Copy link
Copy Markdown
Collaborator

@AdrianLundell AdrianLundell commented Jan 20, 2026

Current implementation naively loops over all nodes in the graph for each pattern, scaling badly as the number of patterns increase.

New implementation instead uses a lookup table for the first node in each pattern and then loops over patterns starting with that node.

cc @freddan80 @per @zingo @oscarandersson8218 @digantdesai

Current implementation naively loops over all nodes in the graph
for each pattern, scaling badly as the number of patterns increase.

New implementation instead uses a lookup table for the first
node in each pattern and then loops over patterns starting with
that node.

Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
Change-Id: I8f60324bbc65ddf3d4aa75866276ab88fba63cf7
@AdrianLundell AdrianLundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: none Do not include this in the release notes labels Jan 20, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jan 20, 2026

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit 5e21b68 with merge base 3b16295 (image):

NEW FAILURES - The following jobs have failed:

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 Jan 20, 2026
@AdrianLundell AdrianLundell merged commit f5afa0b into pytorch:main Jan 21, 2026
308 of 310 checks passed
@AdrianLundell AdrianLundell deleted the change-1179397 branch February 17, 2026 17:14
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. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants