Computes scaled exponential linear element-wise.
x < 0 ? scale * alpha * (exp(x) - 1) : scale * x
const x = tf.tensor1d([-1, 2, -3, 4]);x.selu().print(); // or tf.selu(x) Copy
const x = tf.tensor1d([-1, 2, -3, 4]);x.selu().print(); // or tf.selu(x)
The input tensor.
Generated using TypeDoc
Computes scaled exponential linear element-wise.
x < 0 ? scale * alpha * (exp(x) - 1) : scale * x