Skip to main content

nvfp4_matmul_fp16

Function nvfp4_matmul_fp16 

Source
pub fn nvfp4_matmul_fp16(
    m: usize,
    n: usize,
    k: usize,
    tensor_scale_bits: u16,
) -> Result<Vec<u8>, QuantizedBuildError>
Expand description

FP16 activation, accumulation-result, output, and tensor-scale variant. The scale is supplied as IEEE binary16 bits so no implicit host rounding is involved. As in TOSA FP16 MATMUL, accumulation has the specified wider accumulator and the result rounds to FP16 before the final FP16 scaling operation.