• 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)

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc