From 3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Fri, 14 Jun 2019 17:18:12 +0100 Subject: COMPMID-2408: Add QSYMM16 support for ElementwiseAddition for NEON Change-Id: I22991e9369ffba9b51a94522ff4977933e887b94 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/1352 Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Reviewed-by: Giuseppe Rossini --- tests/validation/Helpers.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/validation/Helpers.h') diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 2e8c667a41..44dd7a9b81 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -194,6 +194,25 @@ SimpleTensor convert_from_asymmetric(const SimpleTensor &src); */ SimpleTensor convert_to_asymmetric(const SimpleTensor &src, const QuantizationInfo &quantization_info); +/** Convert quantized simple tensor into float using tensor quantization information. + * + * @param[in] src Quantized tensor. + * + * @return Float tensor. + */ +template +SimpleTensor convert_from_symmetric(const SimpleTensor &src); + +/** Convert float simple tensor into quantized using specified quantization information. + * + * @param[in] src Float tensor. + * @param[in] quantization_info Quantification information. + * + * @return Quantized tensor. + */ +template +SimpleTensor convert_to_symmetric(const SimpleTensor &src, const QuantizationInfo &quantization_info); + /** Matrix multiply between 2 float simple tensors * * @param[in] a Input tensor A -- cgit v1.2.1