diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2019-06-14 17:18:12 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-06-20 17:41:16 +0000 |
commit | 3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1 (patch) | |
tree | 9d068e7548af2a6054468c35f3259b52bdda91a5 /tests/validation/Helpers.h | |
parent | a28aebc5f80630683f50ce934e8584c6b0004beb (diff) | |
download | ComputeLibrary-3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1.tar.gz |
COMPMID-2408: Add QSYMM16 support for ElementwiseAddition for NEON
Change-Id: I22991e9369ffba9b51a94522ff4977933e887b94
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1352
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'tests/validation/Helpers.h')
-rw-r--r-- | tests/validation/Helpers.h | 19 |
1 files changed, 19 insertions, 0 deletions
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<float> convert_from_asymmetric(const SimpleTensor<uint8_t> &src); */ SimpleTensor<uint8_t> convert_to_asymmetric(const SimpleTensor<float> &src, const QuantizationInfo &quantization_info); +/** Convert quantized simple tensor into float using tensor quantization information. + * + * @param[in] src Quantized tensor. + * + * @return Float tensor. + */ +template <typename T> +SimpleTensor<float> convert_from_symmetric(const SimpleTensor<T> &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 <typename T> +SimpleTensor<T> convert_to_symmetric(const SimpleTensor<float> &src, const QuantizationInfo &quantization_info); + /** Matrix multiply between 2 float simple tensors * * @param[in] a Input tensor A |