sigmoid

dragon.vm.tensorflow.keras.activations.sigmoid(
  x,
  **kwargs
)[source]

Apply the sigmoid function to input.

The Sigmoid function is defined as:

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

Examples:

x = tf.constant([0.2, 0.4, 0.6, 0.8, 1.0], 'float32')
print(tf.keras.activations.sigmoid(x, inplace=False))
Parameters:
Returns:

dragon.Tensor – The output tensor