<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/modeling/activations/mish.py#L20-L36) |

Mish activation function.

    tfm.utils.activations.mish(
        x
    ) -> tf.Tensor

Mish: A Self Regularized Non-Monotonic Activation Function
<https://arxiv.org/pdf/1908.08681.pdf>

Mish(x) = x \* tanh(ln(1+e\^x))

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor` representing preactivation values. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The activation value. ||

<br />