softPlus function

VARP softPlus(
  1. VARP features
)

Computes softplus: log(exp(features) + 1).

Args:

  • features: A variable. Must be Halide_Type_Float.

Returns:

  • A variable with the same type as features.

Implementation

VARP softPlus(VARP features) => VARP.fromPointer(C.mnn_expr_Softplus(features.ptr));