From ebe2e8ccc6f9504fdad95884a794be1e9f58803e Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Fri, 23 Aug 2019 16:26:26 +0100 Subject: COMPMID-2318: Implement NEROIAlignLayer Added support for QASYMM8 Change-Id: I884ee8b44f38ed6e2eb5600e4ffff25e19f52eb8 Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/1831 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'arm_compute/core') diff --git a/arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h b/arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h index 00c6f07cb5..4fc339bd14 100644 --- a/arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h @@ -55,9 +55,10 @@ public: /** Set the input and output tensors. * - * @param[in] input Source tensor. Data types supported: F16/F32. + * @param[in] input Source tensor. Data types supported: QASYMM8/F16/F32. * @param[in] rois ROIs tensor, it is a 2D tensor of size [5, N] (where N is the number of ROIs) containing top left and bottom right corner - * as coordinate of an image and batch_id of ROI [ batch_id, x1, y1, x2, y2 ]. Data types supported: same as @p input + * as coordinate of an image and batch_id of ROI [ batch_id, x1, y1, x2, y2 ]. + * Data types supported: QASYMM16 with scale of 0.125 and 0 offset if @p input is QASYMM8, otherwise same as @p input * @param[out] output Destination tensor. Data types supported: Same as @p input. * @param[in] pool_info Contains pooling operation information described in @ref ROIPoolingLayerInfo. * @@ -69,8 +70,9 @@ public: void configure(const ITensor *input, const ITensor *rois, ITensor *output, const ROIPoolingLayerInfo &pool_info); /** Static function to check if given info will lead to a valid configuration of @ref NEROIAlignLayerKernel * - * @param[in] input Source tensor info. Data types supported: F16/F32. - * @param[in] rois ROIs tensor info. Data types supported: same as @p input + * @param[in] input Source tensor info. Data types supported: QASYMM8/F16/F32. + * @param[in] rois ROIs tensor info. Data types supported: QASYMM16 with scale of 0.125 and 0 offset if @p input is QASYMM8, + * otherwise same as @p input * @param[in] output Destination tensor info. Data types supported: Same as @p input. * @param[in] pool_info Contains pooling operation information described in @ref ROIPoolingLayerInfo. * @@ -87,7 +89,7 @@ public: void run(const Window &window, const ThreadInfo &info) override; private: - template + template void internal_run(const Window &window, const ThreadInfo &info); const ITensor *_input; -- cgit v1.2.1