Computes sigmoid element-wise, 1 / (1 + exp(-x))
1 / (1 + exp(-x))
const x = tf.tensor1d([0, -1, 2, -3]);x.sigmoid().print(); // or tf.sigmoid(x) Copy
const x = tf.tensor1d([0, -1, 2, -3]);x.sigmoid().print(); // or tf.sigmoid(x)
The input tensor.
Computes sigmoid element-wise,
1 / (1 + exp(-x))