torchact.nn.LogSigmoid

class torchact.nn.LogSigmoid[source]

Implementation of Log(Sigmoid).

Examples::
>>> import torch, torchact
>>> m = torchact.nn.LogSigmoid()
>>> input = torch.tensor([1.0, -2.0, 0.0, 3.0])
>>> output = m(input)
>>> print(output)
tensor([-0.3133, -2.1269, -0.6931, -0.0486])