selu function
Computes scaled exponential linear: scale * alpha * (exp(features) - 1) if < 0, scale * features otherwise.
Args:
- features: A variable of type Halide_Type_Float
- scale: Scaling factor (positive float)
- alpha: Alpha factor (positive float)
Returns:
- A variable. Has the same type as features.
Implementation
VARP selu(VARP features, double scale, double alpha) =>
VARP.fromPointer(C.mnn_expr_Selu(features.ptr, scale, alpha));