Skip to main content

quantize

Function quantize 

Source
pub fn quantize(x: f32, bits: u8) -> u8
Expand description

Quantize one N(0,1) value at the given bit width via binary search.