Skip to main content

c_softmax

Function c_softmax 

Source
pub fn c_softmax(logits: &mut [f32]) -> Result<(), ()>
Expand description

Numerically stable softmax via C kernel.

Returns Ok(()) on success, Err on underflow or empty input.