Skip to main content

stable_softmax

Function stable_softmax 

Source
pub fn stable_softmax(values: &[f32]) -> Vec<f32>
Expand description

Stable softmax that returns Vec directly (no Result) Used by sparse, moe, and graph modules