Computes reciprocal of x element-wise: 1 / x
1 / x
const x = tf.tensor1d([0, 1, 2]);x.reciprocal().print(); // or tf.reciprocal(x) Copy
const x = tf.tensor1d([0, 1, 2]);x.reciprocal().print(); // or tf.reciprocal(x)
The input tensor.
Generated using TypeDoc
Computes reciprocal of x element-wise:
1 / x