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) Copy
const x = tf.tensor1d([.6, 1.1, -3.3, NaN, 0]);x.sign().print(); // or tf.sign(x)
The input Tensor.
Generated using TypeDoc
Returns an element-wise indication of the sign of a number.