aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2019-08-23 16:26:26 +0100
committerPablo Marquez <pablo.tello@arm.com>2019-08-30 09:34:09 +0000
commitebe2e8ccc6f9504fdad95884a794be1e9f58803e (patch)
tree51d2ccbf02835dbd743a129424f1bd54f2d8f5b8 /arm_compute/core
parentd75f9e9a7bd192a88631972ccd82254059ce4a9d (diff)
downloadComputeLibrary-ebe2e8ccc6f9504fdad95884a794be1e9f58803e.tar.gz
COMPMID-2318: Implement NEROIAlignLayer
Added support for QASYMM8 Change-Id: I884ee8b44f38ed6e2eb5600e4ffff25e19f52eb8 Signed-off-by: Pablo Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/1831 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/core')
-rw-r--r--arm_compute/core/NEON/kernels/NEROIAlignLayerKernel.h12
1 files changed, 7 insertions, 5 deletions
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 <DataLayout data_layout, typename data_type>
+ template <DataLayout data_layout, typename input_data_type, typename roi_data_type = input_data_type>
void internal_run(const Window &window, const ThreadInfo &info);
const ITensor *_input;