Skip to main content

from_int_requant

Function from_int_requant 

Source
pub fn from_int_requant(
    spec: &IntRequantSpec,
    names: &StageNames,
    shape: (usize, usize),
    target: &SpatialTarget,
) -> Result<SpatialProgram, SpatialReject>
Expand description

y = (x · M) >> S — an int8 model’s requant: the exact product, then an arithmetic shift.