<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/ops/numpy.py#L4802-L4814) |

Base-2 logarithm of `x`, element-wise.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.log2`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/log2)

<br />

    tf.keras.ops.log2(
        x
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor, element-wise base-2 logarithm of `x`. ||

<br />