pymoose.sigmoid
pymoose.sigmoid#
- pymoose.sigmoid(x, placement=None)[source]#
Apply the sigmoid function, \(\frac{1}{1 + e^{-x}}\).
If the input is a tensor, the operation is performed elementwise.
- Parameters
x – A value.
placement – An optional
Placementto pin this operation to.
- Returns
The result of applying the sigmoid function to
x.