aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/ROIPoolingLayer.cpp
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2017-07-04 15:02:10 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit3e36369a5511c3028c30fc820752dc1248bddf5c (patch)
tree58eb09548bdcc276e62f41f01f86fa06fea211e7 /tests/validation/NEON/ROIPoolingLayer.cpp
parentedfa9f463bed084f8b0953557202b2a1e56da817 (diff)
downloadComputeLibrary-3e36369a5511c3028c30fc820752dc1248bddf5c.tar.gz
COMPMID-358 Implement OpenCL ROI Pooling
* Implement OpenCL ROI Pooling * Add CLROIPoolingLayer benchmarks Change-Id: I8786d01d551850a1b4d599a48fabe3925e0a27d0 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79833 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/NEON/ROIPoolingLayer.cpp')
-rw-r--r--tests/validation/NEON/ROIPoolingLayer.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/validation/NEON/ROIPoolingLayer.cpp b/tests/validation/NEON/ROIPoolingLayer.cpp
index 5775db7e03..523885d908 100644
--- a/tests/validation/NEON/ROIPoolingLayer.cpp
+++ b/tests/validation/NEON/ROIPoolingLayer.cpp
@@ -22,13 +22,12 @@
* SOFTWARE.
*/
#include "NEON/Accessor.h"
-#include "NEON/Helper.h"
+#include "NEON/ArrayAccessor.h"
#include "TypePrinter.h"
#include "arm_compute/runtime/NEON/functions/NEROIPoolingLayer.h"
#include "tests/Globals.h"
#include "tests/Utils.h"
#include "validation/Datasets.h"
-#include "validation/Helpers.h"
#include "validation/Reference.h"
#include "validation/Validation.h"
#include "validation/ValidationUserConfiguration.h"
@@ -51,9 +50,12 @@ Tensor compute_roi_pooling_layer(const TensorShape &shape, DataType dt, const st
shape_dst.set(3, rois.size());
// Create tensors
- Tensor src = create_tensor<Tensor>(shape, dt);
- Tensor dst = create_tensor<Tensor>(shape_dst, dt);
- Array<ROI> rois_array = create_array(rois);
+ Tensor src = create_tensor<Tensor>(shape, dt);
+ Tensor dst = create_tensor<Tensor>(shape_dst, dt);
+
+ // Create ROI array
+ Array<ROI> rois_array(rois.size());
+ fill_array(ArrayAccessor<ROI>(rois_array), rois);
// Create and configure function
NEROIPoolingLayer roi_pool;