Function arm_relu_generic_s8

Function Documentation

arm_cmsis_nn_status arm_relu_generic_s8(const int8_t *input, const int32_t input_offset, const int32_t output_offset, const int32_t output_multiplier, const int32_t output_shift, const int32_t act_min, const int32_t act_max, int8_t *output, const int32_t output_size)

S8 ReLU activation function (generic version) This generic version allows to set custom lower and upper bounds to implement ReLU6, etc.

Parameters:
  • input[in] Pointer to the input buffer

  • input_offset[in] Input tensor zero offset

  • output_offset[in] Output tensor zero offset

  • output_multiplier[in] Output multiplier

  • output_shift[in] Output shift

  • act_min[in] Minimum value to clamp the output to

  • act_max[in] Maximum value to clamp the output to

  • output[out] Pointer to the output buffer

  • output_size[in] Number of elements in the tensor

Returns:

The function returns ARM_MATH_SUCCESS