Skip to main content

Module per_channel_affine

Module per_channel_affine 

Source
Expand description

Per-channel affine quantization descriptor (scheme tag 0x02).

One scale and zero_point pair per slice along a specified axis. The scale and zero-point arrays are stored in separate buffers listed in the tensor descriptor’s buffer table.

See docs/spec/quantization/per-channel-affine.md for the normative definition.

Structs§

PerChannelAffine
Quantization parameters for per-channel affine quantization.

Constants§

FLAG_SYMMETRIC
Bit 0: symmetric flag — zero-point array is implicit (all zeros).
RESERVED_MASK
All bits except bit 0 are reserved and must be zero.