pub fn tanh<T>(args: T) -> Twhere T: Float,
the tanh activation function: $f(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}$