Skip to main content

softmax_row

Function softmax_row 

Source
pub fn softmax_row(row: &mut [f32])
Expand description

In-place softmax over a contiguous row.

Uses the numerically stable formulation: subtract max, exponentiate, normalize.