Realm

oa::ml::matrix::quantize

Quantize Float32 storage into one native OA Q4 or Q8 weight value. The returned value retains the source shape; its physical planes remain private. Errors Returns an error unless the input is a non-empty Float32 matrix whose element byte offsets fit the u32 kernel ABI, or allocation/recording fails.

FnRust public API

Function Documentation

pub fn quantize( input: &Matrix, quantization: Quantization ) -> Result<QuantMatrix>
Quantize Float32 storage into one native OA Q4 or Q8 weight value. The returned value retains the source shape; its physical planes remain private. Errors Returns an error unless the input is a non-empty Float32 matrix whose element byte offsets fit the u32 kernel ABI, or allocation/recording fails.