@tf_export('math.sigmoid', 'nn.sigmoid', 'sigmoid')
def sigmoid(x, name=None):
    'Computes sigmoid of `x` element-wise.\n\n  Specifically, `y = 1 / (1 + exp(-x))`.\n\n  Args:\n    x: A Tensor with type `float16`, `float32`, `float64`, `complex64`,\n      or `complex128`.\n    name: A name for the operation (optional).\n\n  Returns:\n    A Tensor with the same type as `x`.\n\n  @compatibility(scipy)\n  Equivalent to scipy.special.expit\n  @end_compatibility\n  '
    with ops.name_scope(name, 'Sigmoid', [x]) as name:
        x = ops.convert_to_tensor(x, name='x')
        return gen_math_ops.sigmoid(x, name=name)
Computes sigmoid of `x` element-wise.

Specifically, `y = 1 / (1 + exp(-x))`.

Args:
  x: A Tensor with type `float16`, `float32`, `float64`, `complex64`,
    or `complex128`.
  name: A name for the operation (optional).

Returns:
  A Tensor with the same type as `x`.

@compatibility(scipy)
Equivalent to scipy.special.expit
@end_compatibility
@tf_export('math.sigmoid', 'nn.sigmoid', 'sigmoid')
def sigmoid(x, name=None):
    'Computes sigmoid of `x` element-wise.\n\n  Specifically, `y = 1 / (1 + exp(-x))`.\n\n  Args:\n    x: A Tensor with type `float16`, `float32`, `float64`, `complex64`,\n      or `complex128`.\n    name: A name for the operation (optional).\n\n  Returns:\n    A Tensor with the same type as `x`.\n\n  @compatibility(scipy)\n  Equivalent to scipy.special.expit\n  @end_compatibility\n  '
    with ops.name_scope(name, 'Sigmoid', [x]) as name:
        x = ops.convert_to_tensor(x, name='x')
        return gen_math_ops.sigmoid(x, name=name)