softSign function

VARP softSign(
  1. VARP features
)

Computes softsign: features / (abs(features) + 1).

Args:

  • features: A variable. Must be Halide_Type_Float.

Returns:

  • A variable with the same type as features.

Implementation

VARP softSign(VARP features) => VARP.fromPointer(C.mnn_expr_Softsign(features.ptr));