Skip to content
fn

elu_op

→TensorImplPtr
int elu_op(const int & a, double alpha)

Python wrappers

Public Python APIs implemented by this engine symbol.

Exponential Linear Unit y=xy = x if x≥0x \ge 0 else α (ex−1)\alpha\,(e^x - 1).

See Also

EluBackward : Autograd node implementing the gradient rule.

Parameters

aTensorImplPtr
Input tensor.
alphadouble
Negative-saturation scale.

Returns

TensorImplPtr

Output tensor with the same shape as a.