Compute Library
 22.05
ROIPoolingLayer.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NEROIPoolingLayer.h"
#include "arm_compute/runtime/Tensor.h"
#include "arm_compute/runtime/TensorAllocator.h"
#include "tests/Globals.h"
#include "tests/NEON/Accessor.h"
#include "tests/datasets/ROIDataset.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/Macros.h"
#include "tests/framework/datasets/Datasets.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/ROIPoolingLayerFixture.h"

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Typedefs

using NEROIPoolingLayerFloatFixture = ROIPoolingLayerFixture< Tensor, Accessor, NEROIPoolingLayer, float >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::QASYMM8), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 2U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), TensorInfo(TensorShape(250U, 128U, 3U), 1, DataType::F32), }), framework::dataset::make("RoisInfo", { TensorInfo(TensorShape(5, 4U), 1, DataType::U16), TensorInfo(TensorShape(5, 4U), 1, DataType::U16), TensorInfo(TensorShape(5, 4U), 1, DataType::F16), TensorInfo(TensorShape(5, 4U), 1, DataType::U16), TensorInfo(TensorShape(5, 4U), 1, DataType::U16), TensorInfo(TensorShape(5, 10U), 1, DataType::U16), TensorInfo(TensorShape(4, 4U), 1, DataType::U16), TensorInfo(TensorShape(5, 4U), 1, DataType::U16), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F32), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::QASYMM8), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F32), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F16), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F32), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F32), TensorInfo(TensorShape(7U, 7U, 3U, 4U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 3U, 4U), 1, DataType::F32), })), framework::dataset::make("PoolInfo", { ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), ROIPoolingLayerInfo(7U, 7U, 1./8), })), framework::dataset::make("Expected", { true, true, false, false, false, false, false })), input_info, rois_info, output_info, pool_info, expected)
 
 FIXTURE_DATA_TEST_CASE (SmallROIPoolingLayerFloat, NEROIPoolingLayerFloatFixture, framework::DatasetMode::ALL, framework::dataset::combine(framework::dataset::combine(datasets::SmallROIDataset(), framework::dataset::make("DataType", { DataType::F32 })), framework::dataset::make("DataLayout", { DataLayout::NCHW })))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 FIXTURE_DATA_TEST_CASE (Small, NEROIPoolingLayerQuantizedFixture< uint8_t >, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::SmallROIDataset(), framework::dataset::make("DataType", { DataType::QASYMM8 })), framework::dataset::make("DataLayout", { DataLayout::NCHW })), framework::dataset::make("InputQuantizationInfo", { QuantizationInfo(1.f/255.f, 127) })), framework::dataset::make("OutputQuantizationInfo", { QuantizationInfo(2.f/255.f, 120) })))