From aee1facbde25caf27cc34e5ec08eb8bba6af8e18 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Wed, 11 Nov 2020 13:54:06 -0800 Subject: Implement and add unit tests for MUL and ARITHMETIC_RIGHT_SHIFT add .clang-format Add expected failure for RESIZE and RESCALE unit tests Signed-off-by: Kevin Cheng Change-Id: I33c8afdc8998e8518f2b0e5fabddd36ce3aa2ee9 --- reference_model/src/quant_util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'reference_model/src/quant_util.h') 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<