Skip to main content

forward

Function forward 

Source
pub fn forward(model: &CmfModel, x: &[f32]) -> Vec<f32>
Expand description

Transform an activation row before a forward Prism matrix: x·D·H. The source contract requests an f16 boundary after the FWHT; keeping that cast here makes the CPU implementation agree with the trained MLX path.