36 const InputT *input_data, OutputT *output_data)
38 const int32_t zero_point = op_params.
zero_point;
39 const double scale = op_params.
scale;
41 for (uint32_t i = 0; i < flat_size; i++)
43 const int32_t val = input_data[i];
44 const auto result =
static_cast<OutputT
>(scale * (val - zero_point));
45 output_data[i] = result;