pytorch / pytorch/executorch

Support quantize_ for convolution on XNNPACK

Open
#17,432 0 comments 1 reaction 1 assignee View on GitHub

@GregoryComer is already working on this.

Since Feb 23, 2026.

module: xnnpack
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

XNNPACK's partitioner and lowering logic doesn't recognize the quantize_ (de)quantize_affine representation in the IR for convolution nodes. We need to wire this up.

Example quantization code:

conv_config = IntxWeightOnlyConfig(
        weight_dtype=torch.int8,
        granularity=PerAxis(0),
    )
    quantize_(
        model,
        conv_config,
        lambda m, fqn: isinstance(m, torch.nn.Conv2d),
    ) 

cc @digantdesai @cbilgin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.