Skip to content
fn

leaky_relu_op

→TensorImplPtr
int leaky_relu_op(const int & a, double slope)

Python wrappers

Public Python APIs implemented by this engine symbol.

Leaky ReLU y=xy = x if x>0x > 0 else slope⋅x\text{slope} \cdot x.

See Also

LeakyReluBackward : Autograd node implementing the gradient rule.

Parameters

aTensorImplPtr
Input tensor.
slopedouble
Negative-side slope; 0.01 is the standard default.

Returns

TensorImplPtr

Output tensor with the same shape as a.