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) Copy
const x = tf.tensor1d([-1, 2, -3, 4]);const alpha = tf.scalar(0.1);x.prelu(alpha).print(); // or tf.prelu(x, alpha)
The input tensor.
Scaling factor for negative values.
Generated using TypeDoc
Computes leaky rectified linear element-wise with parametric alphas.
x < 0 ? alpha * x : f(x) = x