pub fn log_softmax(xs: &[f64]) -> Vec<f64>
Compute the logarithm of the softmax function
softmax
Pure Rust translation of scipy.special.log_softmax.
scipy.special.log_softmax
log_softmax is more accurate than taking the log of softmax with inputs that make softmax saturate.
log_softmax
logsumexp