• Returns an element-wise indication of the sign of a number.

    const x = tf.tensor1d([.6, 1.1, -3.3, NaN, 0]);

    x.sign().print(); // or tf.sign(x)

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc