# tf.math.log_sigmoid

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/math/log_sigmoid) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/ops/math_ops.py#L3157-L3175) |

Computes log sigmoid of `x` element-wise.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.log_sigmoid`](https://www.tensorflow.org/api_docs/python/tf/math/log_sigmoid), [`tf.compat.v1.math.log_sigmoid`](https://www.tensorflow.org/api_docs/python/tf/math/log_sigmoid)

<br />

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

Specifically, `y = log(1 / (1 + exp(-x)))`. For numerical stability,
we use `y = -tf.nn.softplus(-x)`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A Tensor with type `float32` or `float64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Tensor with the same type as `x`. ||

<br />