tensorplay.nn.functional.tanhshrink tensorplay.nn.functional.tanhshrink(input) → Tensor[source] Applies element-wise, Tanhshrink(x)=x−Tanh(x)\text{Tanhshrink}(x) = x - \text{Tanh}(x)Tanhshrink(x)=x−Tanh(x) See Tanhshrink for more details.