act_scale_rowmajor_to_kmajor

Function act_scale_rowmajor_to_kmajor 

Source
pub fn act_scale_rowmajor_to_kmajor(
    src: &[f32],
    m: usize,
    m_pad: usize,
    l: usize,
) -> Vec<f32>
Expand description

2026-09-25: CPU reference for the fp8_act_scale_to_kmajor kernel: read row-major [m, l] scales and write [l, m_pad], with the pad tokens m..m_pad set to 0.0, as the kernel does.