Computes absolute value element-wise: abs(x)
abs(x)
const x = tf.tensor1d([-1, 2, -3, 4]);x.abs().print(); // or tf.abs(x) Copy
const x = tf.tensor1d([-1, 2, -3, 4]);x.abs().print(); // or tf.abs(x)
The input tf.Tensor.
tf.Tensor
Generated using TypeDoc
Computes absolute value element-wise:
abs(x)