Computes exponential linear element-wise: x > 0 ? x : (e ^ x) - 1.
x > 0 ? x : (e ^ x) - 1
const x = tf.tensor1d([-1, 1, -3, 2]);x.elu().print(); // or tf.elu(x) Copy
const x = tf.tensor1d([-1, 1, -3, 2]);x.elu().print(); // or tf.elu(x)
The input tensor.
Generated using TypeDoc
Computes exponential linear element-wise:
x > 0 ? x : (e ^ x) - 1
.