function isFinite_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "isFinite");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.IsFinite), inputs);
}
Returns which elements of x are finite.

```js
const x = tf.tensor1d([NaN, Infinity, -Infinity, 0, 1]);

x.isFinite().print();  // or tf.isNaN(x)
```
@param x The input Tensor.

@doc {heading: 'Operations', subheading: 'Basic math'}