torch.nn.
LogSigmoid
Applies the element-wise function:
Input: (N,∗)(N, *)(N,∗) where * means, any number of additional dimensions
Output: (N,∗)(N, *)(N,∗) , same shape as the input
Examples:
>>> m = nn.LogSigmoid() >>> input = torch.randn(2) >>> output = m(input)
此页内容是否对您有帮助
感谢反馈!