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

torch.nn.functional.logsigmoid

torch.nn.functional.logsigmoid(input) → Tensor

Applies element-wise LogSigmoid ( x i ) = log ( 1 1 + exp ( x i ) ) \text{LogSigmoid}(x_i) = \log \left(\frac{1}{1 + \exp(-x_i)}\right)

See LogSigmoid 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.logsigmoid.html