tf.math.sigmoid

View source on GitHub

Computes sigmoid of x element-wise.

tf.math.sigmoid(
    x, name=None
)

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

Args:

Returns:

A Tensor with the same type as x.

Scipy Compatibility

Equivalent to scipy.special.expit