layer_norm

Function layer_norm 

Source
pub fn layer_norm(
    x: &[f32],
    w: &[f32],
    b: &[f32],
    d: usize,
    eps: f32,
) -> Vec<f32>
Expand description

2026-09-25: LayerNorm over the trailing d: subtract the mean, divide by the standard deviation, then w * x + b.