From a6018b92e2e9f849ace6fd555a5353c3e79d322a Mon Sep 17 00:00:00 2001 From: TFLM-bot Date: Wed, 28 May 2025 14:02:43 +0000 Subject: [PATCH] Sync from upstream TF. --- tensorflow/lite/kernels/internal/reference/div.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/lite/kernels/internal/reference/div.h b/tensorflow/lite/kernels/internal/reference/div.h index df8da1b1a97..e70fb09767e 100644 --- a/tensorflow/lite/kernels/internal/reference/div.h +++ b/tensorflow/lite/kernels/internal/reference/div.h @@ -30,7 +30,7 @@ inline void DivCheckArithmeticParams(const ArithmeticParams& params) { // Input offset is negative input zero point. Activation tensors are // asymmetric quantized so they span the full int8 range. constexpr int32_t max_value = - static_cast(std::numeric_limits::max()); + (static_cast(std::numeric_limits::max()) + 1); TFLITE_DCHECK_GE(params.input1_offset, -max_value); TFLITE_DCHECK_LE(params.input1_offset, max_value); TFLITE_DCHECK_GE(params.input2_offset, -max_value);