LogSigmoid#
- class brainpy.dnn.LogSigmoid(name=None, mode=None)[source]#
Applies the element-wise function:
\[\text{LogSigmoid}(x) = \log\left(\frac{ 1 }{ 1 + \exp(-x)}\right)\]- Shape:
Input: \((*)\), where \(*\) means any number of dimensions.
Output: \((*)\), same shape as the input.
Examples:
>>> import brainpy as bp >>> import brainpy.math as bm >>> m = bp.dnn.LogSigmoid() >>> input = bm.random.randn(2) >>> output = m(input)