28 const InputT *input_data, OutputT *output_data)
30 const int32_t zero_point = op_params.
zero_point;
31 const double scale = op_params.
scale;
33 for (
int i = 0; i < flat_size; i++)
35 const int32_t val = input_data[i];
36 const OutputT result =
static_cast<OutputT
>(scale * (val - zero_point));
37 output_data[i] = result;