tanh_prime
Derivation of the tanh activation function.
f’(x) = 1 - f(x)^2
x (Tensor) – input to the function
Tensor
f’(x), applies derivation of activation function