From d264dafacfca62469686e7aa8c04a6df7f54bf2e Mon Sep 17 00:00:00 2001 From: Robert David Date: Thu, 26 Mar 2020 11:00:09 -0700 Subject: [PATCH] Remove unused function PiperOrigin-RevId: 303150305 Change-Id: I749e2c1547507804b682587820a0a908a07540ac --- .../kernels/internal/reference/dequantize.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tensorflow/lite/kernels/internal/reference/dequantize.h b/tensorflow/lite/kernels/internal/reference/dequantize.h index 6bedcba1044..286c9310799 100644 --- a/tensorflow/lite/kernels/internal/reference/dequantize.h +++ b/tensorflow/lite/kernels/internal/reference/dequantize.h @@ -43,25 +43,6 @@ inline void Dequantize(const tflite::DequantizationParams& op_params, } } -// Dequantizes into an integer with rounding. -template -inline void DequantizeInteger(const tflite::DequantizationParams& op_params, - const RuntimeShape& input_shape, - const InputT* input_data, - const RuntimeShape& output_shape, - OutputT* output_data) { - int32 zero_point = op_params.zero_point; - const double scale = op_params.scale; - const int flat_size = MatchingFlatSize(input_shape, output_shape); - - for (int i = 0; i < flat_size; i++) { - const int32 val = input_data[i]; - const OutputT result = - static_cast(round(scale * (val - zero_point))); - output_data[i] = result; - } -} - // Dequantizes per-channel quantized tensor to float. template inline void PerChannelDequantize(