Leaky version of a rectified linear unit.
It allows a small gradient when the unit is not active: f(x) = alpha * x for x < 0. f(x) = x for x >= 0.
f(x) = alpha * x for x < 0.
f(x) = x for x >= 0.
Input shape: Arbitrary. Use the configuration inputShape when using this layer as the first layer in a model.
inputShape
Output shape: Same shape as the input.
Optional
Generated using TypeDoc
Leaky version of a rectified linear unit.
It allows a small gradient when the unit is not active:
f(x) = alpha * x for x < 0.
f(x) = x for x >= 0.
Input shape: Arbitrary. Use the configuration
inputShape
when using this layer as the first layer in a model.Output shape: Same shape as the input.