• Computes leaky rectified linear element-wise with parametric alphas.

    x < 0 ? alpha * x : f(x) = x

    const x = tf.tensor1d([-1, 2, -3, 4]);
    const alpha = tf.scalar(0.1);

    x.prelu(alpha).print(); // or tf.prelu(x, alpha)

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc