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