Skip to content

Commit a6018b9

Browse files
committed
Sync from upstream TF.
1 parent 3c0b1e3 commit a6018b9

File tree

1 file changed

+1
-1
lines changed
  • tensorflow/lite/kernels/internal/reference

1 file changed

+1
-1
lines changed

tensorflow/lite/kernels/internal/reference/div.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ inline void DivCheckArithmeticParams(const ArithmeticParams& params) {
3030
// Input offset is negative input zero point. Activation tensors are
3131
// asymmetric quantized so they span the full int8 range.
3232
constexpr int32_t max_value =
33-
static_cast<int32_t>(std::numeric_limits<T>::max());
33+
(static_cast<int32_t>(std::numeric_limits<T>::max()) + 1);
3434
TFLITE_DCHECK_GE(params.input1_offset, -max_value);
3535
TFLITE_DCHECK_LE(params.input1_offset, max_value);
3636
TFLITE_DCHECK_GE(params.input2_offset, -max_value);

0 commit comments

Comments
 (0)