elu function

VARP elu(
  1. VARP features, {
  2. double alpha = 1.0,
})

Computes exponential linear: alpha * (exp(features) - 1) if < 0, features otherwise.

  • features: A variable of type Halide_Type_Float
  • alpha: Alpha factor (positive float)

Returns:

  • A variable. Has the same type as features.

Implementation

VARP elu(VARP features, {double alpha = 1.0}) => VARP.fromPointer(C.mnn_expr_Elu(features.ptr, alpha));