softmax_axis

Function softmax_axis 

Source
pub fn softmax_axis<A, S, D>(
    args: &ArrayBase<S, D, A>,
    axis: usize,
) -> Array<A, D>
where A: Float + ScalarOperand, D: RemoveAxis, S: Data<Elem = A>,
Expand description

Softmax function along a specific axis:

f(x_i) = \frac{e^{x_i}}{\sum_{j} e^{x_j}}