Returns which elements of x are Infinity or -Infinity.
const x = tf.tensor1d([NaN, Infinity, -Infinity, 0, 1]);x.isInf().print(); // or tf.isNaN(x) Copy
const x = tf.tensor1d([NaN, Infinity, -Infinity, 0, 1]);x.isInf().print(); // or tf.isNaN(x)
The input Tensor.
Generated using TypeDoc
Returns which elements of x are Infinity or -Infinity.