<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#L4226-L4242) |

Return whether a tensor is finite, element-wise.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.isfinite(
        x
    )

Real values are finite when they are not NaN, not positive infinity, and
not negative infinity. Complex values are finite when both their real
and imaginary parts are finite.

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

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

<br />