Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ NN_elu()

void NN_elu ( Tensor y,
const Tensor x,
float  alpha 
)

Applies the Exponential Linear Unit (ELU) function, element-wise.

The ELU function is defined as:

ELU(x) = x, if x > 0 alpha * (exp(x) - 1), if x <= 0

Parameters
youtput tensor
xinput tensor
alphathe alpha value for the ELU formulation