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

torch.nn.functional.sigmoid

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

Applies the element-wise function Sigmoid ( x ) = 1 1 + exp ( x ) \text{Sigmoid}(x) = \frac{1}{1 + \exp(-x)}

See Sigmoid 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.sigmoid.html