Skip to main content

quantize_q8_0

Function quantize_q8_0 

Source
pub fn quantize_q8_0(src: &[f32]) -> Vec<u8> 
Expand description

Quantize an f32 slice into Q8_0 blocks (used by test fixtures and by the CPU reference “quantize activations for a symmetric int8 matmul” path). Not performance tuned; correctness-first reference only.