<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#L4338-L4350) |

Test element-wise for NaN and return result as a boolean tensor.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.isnan(
        x
    )

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output boolean tensor. ||

<br />