Rate this Page
★ ★ ★ ★ ★

torch.nn.functional.tanhshrink#

torch.nn.functional.tanhshrink(input) → Tensor[source]#

Applies element-wise, Tanhshrink(x)=x−Tanh(x)\text{Tanhshrink}(x) = x - \text{Tanh}(x)

See Tanhshrink for more details.