<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/activations/activations.py#L645-L657) |

Log-Softmax activation function.

    tf.keras.activations.log_softmax(
        x, axis=-1
    )

Each input vector is handled independently.
The `axis` argument sets which axis of the input the function
is applied along.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `axis` | Integer, axis along which the softmax is applied. |

<br />