pytorch / 2 / generated / torch.nn.functional.softsign.html

torch.nn.functional.softsign

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

Applies element-wise, the function SoftSign ( x ) = x 1 + x \text{SoftSign}(x) = \frac{x}{1 + |x|}

See Softsign for more details.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.softsign.html