Home Knowledge Base Per-channel quantization

Per-channel quantization applies different quantization parameters (scale and zero-point) to each output channel (filter) in a convolutional or linear layer, rather than using a single set of parameters for the entire tensor.

How It Works

Formula

For a weight tensor $W$ with shape [out_channels, in_channels, height, width]:

$$q_{c,i,h,w} = ext{round}(W_{c,i,h,w} / s_c + z_c)$$

Where $c$ is the output channel index.

Why Per-Channel Matters

Trade-offs

Example

Consider a Conv2D layer with 64 output channels:

Standard Practice

Per-channel quantization is a best practice for weight quantization, providing significant accuracy benefits with minimal cost.

per-channel quantizationmodel optimization

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.