Skip to main content

quantize_4bit

Function quantize_4bit 

Source
pub fn quantize_4bit(x: f32) -> u8
Expand description

Quantize one N(0,1)-distributed value to a 4-bit index via binary search over the decision boundaries.