• 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)

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc