ReLU6 function

VARP ReLU6(
  1. VARP x, {
  2. double minValue = 0.0,
  3. double maxValue = 6.0,
})

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));