pub fn tanhshrink<const D: usize>(tensor: Tensor<D>) -> Tensor<D>
Applies the Tanhshrink function element-wise, x - tanh(x).
x - tanh(x)
Tanhshrink(x) = x - tanh(x)