pytorch / pytorch/executorch

NXP Backend: Quantize selected activation functions with Conv/Matrix multiplication

Open
#13,063 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

🚀 The feature, motivation and pitch

Currently the Neutron Quantizer, quantizes the activation functions like Relu separatelly. What is OK for case, when the activation function is isolated. But in majority of the cases the activation function follows the Convolution or matrix multiplication. And Neutron NPU computes the Conv/MatrixMul + Activation in one pass.
Therefore the proper quantization scheme for this case shall be:
DeQuantize -> Conv -> Activation -> Quantize.

Internal ID: EIEX-455

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

cc @digantdesai @JakeStevens

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.

Research direction

No file, test, or entry point is identified. Locate the Neutron Quantizer implementation and the existing Conv or matrix-multiplication activation quantization path first; completion should implement the stated DeQuantize → Conv/MatrixMul → Activation → Quantize scheme and validate it for the selected activation functions.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.