threshold function
Given an input value x, it computes the output as 1.0 if x > threshold and 0.0 if x <= threshold.
- features: A variable of type Halide_Type_Float
- threshold: threshold value
Returns:
- A variable. Has the same type as features.
Implementation
VARP threshold(VARP features, {double alpha = 1.0}) =>
VARP.fromPointer(C.mnn_expr_Threshold(features.ptr, alpha));