Skip to main content

log_softmax

Function log_softmax 

Source
pub fn log_softmax(logits: &[f64]) -> Vec<f64>
Expand description

Compute log-softmax: log(softmax(x)) with the log-sum-exp trick.