24.02.1
|
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#include "arm_compute/runtime/CL/CLTensorAllocator.h"
#include "arm_compute/runtime/CL/functions/CLPriorBoxLayer.h"
#include "tests/CL/CLAccessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/PriorBoxLayerDataset.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/Asserts.h"
#include "tests/framework/Macros.h"
#include "tests/framework/datasets/Datasets.h"
#include "tests/validation/Helpers.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/PriorBoxLayerFixture.h"
Go to the source code of this file.
Namespaces | |
arm_compute | |
Copyright (c) 2017-2024 Arm Limited. | |
arm_compute::test | |
arm_compute::test::validation | |
Typedefs | |
template<typename T > | |
using | CLPriorBoxLayerFixture = PriorBoxLayerValidationFixture< CLTensor, CLAccessor, CLPriorBoxLayer, T > |
Functions | |
DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(framework::dataset::make("Input1Info", { TensorInfo(TensorShape(10U, 10U, 2U), 1, DataType::F32), TensorInfo(TensorShape(10U, 10U, 2U), 1, DataType::F32), }), framework::dataset::make("Input2Info", { TensorInfo(TensorShape(10U, 10U, 2U), 1, DataType::F32), TensorInfo(TensorShape(10U, 10U, 2U), 1, DataType::F32), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(1200U, 2U), 1, DataType::F32), TensorInfo(TensorShape(1000U, 2U), 1, DataType::F32), })), framework::dataset::make("PriorBoxInfo",{ PriorBoxLayerInfo(std::vector< float >(1), std::vector< float >(1), 0, true, true, std::vector< float >(1), std::vector< float >(1), Coordinates2D{8, 8}, std::array< float, 2 >()), PriorBoxLayerInfo(std::vector< float >(1), std::vector< float >(1), 0, true, true, std::vector< float >(1), std::vector< float >(1), Coordinates2D{8, 8}, std::array< float, 2 >()), })), framework::dataset::make("Expected", { true, false})), input1_info, input2_info, output_info, info, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLPriorBoxLayerFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallPriorBoxLayerDataset(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, CLPriorBoxLayerFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargePriorBoxLayerDataset(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |