ReLU6 function
Given an input value x, it computes Rectified Linear 6: min(max(x, 0), 6).
Args:
- x: A variable.
Returns:
- output: A variable with the same type as
x.
Implementation
VARP ReLU6(VARP x, {double minValue = 0.0, double maxValue = 6.0}) =>
VARP.fromPointer(C.mnn_expr_Relu6(x.ptr, minValue, maxValue));