sigmoid

dragon.math.sigmoid(
  inputs,
  **kwargs
)[source]

Apply the sigmoid function.

The Sigmoid function is defined as:

\[\text{Sigmoid}(x) = \frac{1}{1 + e^{-x}} \]

Examples:

x = dragon.constant([0.2, 0.4, 0.6, 0.8, 1.0])
print(dragon.math.sigmoid(x, inplace=False))
Parameters:
Returns:

dragon.Tensor – The output tensor