diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2019-09-05 12:30:22 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-09-27 16:20:14 +0000 |
commit | 6b612f5fa1fee9528f2f87491fe7edb3887d9817 (patch) | |
tree | 579ef443d61ed1319e5d8f44d8a7a8ce83c82aad /tests/validation/reference/ComputeAllAnchors.cpp | |
parent | 240b79de1c211ebb8d439b4a1c8c79777aa36f13 (diff) | |
download | ComputeLibrary-6b612f5fa1fee9528f2f87491fe7edb3887d9817.tar.gz |
COMPMID-2310: CLGenerateProposalsLayer: support for QASYMM8
Change-Id: I48b77e09857cd43f9498d28e8f4bf346e3d7110d
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1969
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference/ComputeAllAnchors.cpp')
-rw-r--r-- | tests/validation/reference/ComputeAllAnchors.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/validation/reference/ComputeAllAnchors.cpp b/tests/validation/reference/ComputeAllAnchors.cpp index 3f0498015a..60be7ef8a8 100644 --- a/tests/validation/reference/ComputeAllAnchors.cpp +++ b/tests/validation/reference/ComputeAllAnchors.cpp @@ -73,6 +73,15 @@ SimpleTensor<T> compute_all_anchors(const SimpleTensor<T> &anchors, const Comput } template SimpleTensor<float> compute_all_anchors(const SimpleTensor<float> &anchors, const ComputeAnchorsInfo &info); template SimpleTensor<half> compute_all_anchors(const SimpleTensor<half> &anchors, const ComputeAnchorsInfo &info); + +template <> +SimpleTensor<int16_t> compute_all_anchors(const SimpleTensor<int16_t> &anchors, const ComputeAnchorsInfo &info) +{ + SimpleTensor<float> anchors_tmp = convert_from_symmetric(anchors); + SimpleTensor<float> all_anchors_tmp = compute_all_anchors(anchors_tmp, info); + SimpleTensor<int16_t> all_anchors = convert_to_symmetric<int16_t>(all_anchors_tmp, anchors.quantization_info()); + return all_anchors; +} } // namespace reference } // namespace validation } // namespace test |