Function arm_requantize_s16_s16

Function Documentation

arm_cmsis_nn_status arm_requantize_s16_s16(const int16_t *input, int16_t *output, int32_t size, int32_t effective_scale_multiplier, int32_t effective_scale_shift, int32_t input_zeropoint, int32_t output_zeropoint)

Requantize an int16_t array to another int16_t range with a different scale.

Parameters:
  • input[in] Pointer to the input int16_t array.

  • output[out] Pointer to the output int16_t array.

  • size[in] Number of elements in the arrays.

  • effective_scale_multiplier[in] Multiplier used for the scaling operation.

  • effective_scale_shift[in] Right or left shift (depending on sign) applied after the multiplier.

  • input_zeropoint[in] Zero point of the input data.

  • output_zeropoint[in] Zero point of the output data.

Returns:

The function returns ARM_CMSIS_NN_SUCCESS