Function tanh

Source
pub fn tanh<T>(args: T) -> T
where T: Float,
Expand description

the tanh activation function: $f(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}$