From dbdea0d1c025b18d4d82c278c87454427918f5b4 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 16 Oct 2019 19:21:40 +0100 Subject: COMPMID-2308: NEConvolutionLayer: support QUANT8_SYMM_PER_CHANNEL filters Change-Id: Ic1bf5f0d21ccd525f84213a360f7e199d7f50577 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2177 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- tests/validation/Helpers.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/validation/Helpers.h') diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 2ee2dc7aab..2c1df39f14 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -276,6 +276,24 @@ void zeros(SimpleTensor &in, const Coordinates &anchor, const TensorShape &sh * @param[in] max Floating point maximum value to be quantized */ std::pair get_quantized_bounds(const QuantizationInfo &quant_info, float min, float max); + +/** Helper function to compute symmetric quantized min and max bounds + * + * @param[in] quant_info Quantization info to be used for conversion + * @param[in] min Floating point minimum value to be quantized + * @param[in] max Floating point maximum value to be quantized + * @param[in] channel_id Channel id for per channel quantization info. + */ +std::pair get_symm_quantized_per_channel_bounds(const QuantizationInfo &quant_info, float min, float max, size_t channel_id = 0); + +/** Helper function to compute asymmetric quantized min and max bounds + * + * @param[in] quant_info Quantization info to be used for conversion + * @param[in] min Floating point minimum value to be quantized + * @param[in] max Floating point maximum value to be quantized + * @param[in] channel_id Channel id for per channel quantization info. + */ +std::pair get_asymm_quantized_per_channel_bounds(const QuantizationInfo &quant_info, float min, float max, size_t channel_id = 0); } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1