We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c0b1e3 commit a6018b9Copy full SHA for a6018b9
tensorflow/lite/kernels/internal/reference/div.h
@@ -30,7 +30,7 @@ inline void DivCheckArithmeticParams(const ArithmeticParams& params) {
30
// Input offset is negative input zero point. Activation tensors are
31
// asymmetric quantized so they span the full int8 range.
32
constexpr int32_t max_value =
33
- static_cast<int32_t>(std::numeric_limits<T>::max());
+ (static_cast<int32_t>(std::numeric_limits<T>::max()) + 1);
34
TFLITE_DCHECK_GE(params.input1_offset, -max_value);
35
TFLITE_DCHECK_LE(params.input1_offset, max_value);
36
TFLITE_DCHECK_GE(params.input2_offset, -max_value);
0 commit comments