Skip to main content

linear

Function linear 

Source
pub fn linear(
    x: &[f32],
    m: usize,
    k: usize,
    w: &[f32],
    n: usize,
    b: Option<&[f32]>,
    y: &mut [f32],
    threads: usize,
)
Expand description

y = x wᵀ + b in INT8, rounding w on every call. For tests and benchmarks.

§Panics

If a length does not match the shape.