Skip to content

Arm backend: Expand list of ops without quant kernel - #24430

Merged
Erik-Lundell merged 1 commit into
pytorch:mainfrom
Erik-Lundell:incorrect-qparam-folding
Nov 2, 2026
Merged

Erik-Lundell merged 1 commit into
pytorch:mainfrom
Erik-Lundell:incorrect-qparam-folding

Conversation

@Erik-Lundell

@Erik-Lundell Erik-Lundell commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

The added ops will output fp32 fake tensors,
even when the input is int8 which injects floating point tensors in the graph after quant folding.

This is usually not enough to fail lowering, but
can cause issues under certain conditions such as:

  • Some node inserts a node without qparams
  • The decorate_fp32_to_int32 pass sees a cast to int32 that is supposed to be int8->int32. Since neither qparams, nor correct meta is present,
    an fp to int cast is inserted into an otherwise
    quantized graph.

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

The added ops will output fp32 fake tensors,
even when the input is int8 which injects floating
point tensors in the graph after quant folding.

This is usually not enough to fail lowering, but
can cause issues under certain conditions such as:

- Some node inserts a node without qparams
- The decorate_fp32_to_int32 pass sees a cast
to int32 that is supposed to be int8->int32. Since
neither qparams, nor correct meta is present,
an fp to int cast is inserted into an otherwise
quantized graph.

Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: Ie6fc299b04d060dedcf70817eae7c2fcb9015dce
@pytorch-bot

pytorch-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 5 Pending

As of commit 04dd1e1 with merge base 1169410 (image):

NEW FAILURE - The following job has 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 Nov 2, 2026
@Erik-Lundell Erik-Lundell added release notes: none Do not include this in the release notes and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Nov 2, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Nov 2, 2026
@Erik-Lundell Erik-Lundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. ciflow/trunk module: arm Issues related to arm backend and removed ciflow/trunk module: arm Issues related to arm backend labels Nov 2, 2026
@Erik-Lundell
Erik-Lundell merged commit cec2e73 into pytorch:main Nov 2, 2026
493 of 651 checks passed
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. module: arm Issues related to arm backend 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