Automated sync from github.com/tensorflow/tensorflow (#2649)
diff --git a/tensorflow/lite/kernels/internal/quantization_util.h b/tensorflow/lite/kernels/internal/quantization_util.h index 0ee914b..eb4e840 100644 --- a/tensorflow/lite/kernels/internal/quantization_util.h +++ b/tensorflow/lite/kernels/internal/quantization_util.h
@@ -20,7 +20,6 @@ #include <limits> #include "tensorflow/lite/kernels/internal/compatibility.h" -#include "tensorflow/lite/kernels/internal/cppmath.h" #include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -103,6 +102,7 @@ return ChooseQuantizationParams<T>(rmin, rmax, false); } +// LINT.IfChange // Converts a floating-point number to an integer. For all inputs x where // static_cast<IntOut>(x) is legal according to the C++ standard, the result // is identical to that cast (i.e. the result is x with its fractional part @@ -167,6 +167,7 @@ return x < 0 ? std::numeric_limits<IntOut>::min() : std::numeric_limits<IntOut>::max(); } +// LINT.ThenChange(//tensorflow/compiler/mlir/lite/kernels/internal/quantization_util.h) // Decompose a double multiplier into a Q0.31 int32 representation of its // significand, and shift representation of NEGATIVE its exponent ---