Skip to main content

build_tanh_lut

Function build_tanh_lut 

Source
pub fn build_tanh_lut(
    input_scale: f32,
    input_zero_point: i32,
    output_scale: f32,
    output_zero_point: i32,
) -> [i8; 256]
Expand description

Tanh lookup table (C++ buildQTanhLUT). An output grid of scale 1/128 and zero point 0 uses the full int8 range.