Skip to main content

softmax_rows

Function softmax_rows 

Source
pub fn softmax_rows(x: &mut [f32], rows: usize, cols: usize)
Expand description

In-place row-wise softmax: each cols-long row is normalised independently. Numerically stable.