diff options
Diffstat (limited to 'reference_model/src/quant_util.h')
-rw-r--r-- | reference_model/src/quant_util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/reference_model/src/quant_util.h b/reference_model/src/quant_util.h index 3b58b66..f9ac501 100644 --- a/reference_model/src/quant_util.h +++ b/reference_model/src/quant_util.h @@ -34,8 +34,7 @@ public: int32_t& multiplier, int32_t& shift) { - ASSERT_MSG(value > 0, - "AvgPool2d reciprocal_scale() error: # of elements should be > 1 but is %d", value); + ASSERT_MSG(value > 0, "AvgPool2d reciprocal_scale() error: # of elements should be > 1 but is %d", value); uint32_t value_u32 = (uint32_t)value; int32_t k = 32 - LEADING_ZEROS_32(value_u32 - 1); // (1<<k)/2 < value <= (1<<k) int64_t numerator = ((1L << 30) + 1) << k; |