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