21.02
|
#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/CLConcatenateLayer.h"
#include "tests/CL/CLAccessor.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/Validation.h"
#include "tests/validation/fixtures/ConcatenateLayerFixture.h"
Go to the source code of this file.
Namespaces | |
arm_compute | |
Copyright (c) 2017-2021 Arm Limited. | |
arm_compute::test | |
arm_compute::test::validation | |
Typedefs | |
template<typename T > | |
using | CLWidthConcatenateLayerFixture = ConcatenateLayerValidationFixture< CLTensor, ICLTensor, CLAccessor, CLConcatenateLayer, T > |
Functions | |
DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo1", { TensorInfo(TensorShape(23U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(23U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(23U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(16U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(21U, 35U, 5U), 1, DataType::F32) }), framework::dataset::make("InputInfo2", { TensorInfo(TensorShape(24U, 27U, 4U), 1, DataType::F32), TensorInfo(TensorShape(52U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(52U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(16U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(10U, 35U, 5U), 1, DataType::F32) })), framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(47U, 27U, 5U), 1, DataType::F16), TensorInfo(TensorShape(75U, 12U, 5U), 1, DataType::F32), TensorInfo(TensorShape(11U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(32U, 27U, 5U), 1, DataType::F32), TensorInfo(TensorShape(31U, 35U, 5U), 1, DataType::F32) })), framework::dataset::make("Expected", { false, false, false, true, true })), input_info1, input_info2, output_info, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLWidthConcatenateLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(combine(concat(datasets::Small2DShapes(), datasets::Tiny4DShapes()), framework::dataset::make("DataType", DataType::F16)), framework::dataset::make("Axis", 0))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, CLWidthConcatenateLayerFixture< half >, framework::DatasetMode::NIGHTLY, combine(combine(concat(datasets::Large2DShapes(), datasets::Small4DShapes()), framework::dataset::make("DataType", DataType::F16)), framework::dataset::make("Axis", 0))) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLWidthConcatenateLayerFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(concat(datasets::Small2DShapes(), datasets::Tiny4DShapes()), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("Axis", 0))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, CLWidthConcatenateLayerFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::ConcatenateLayerShapes(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("Axis", 0))) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLWidthConcatenateLayerFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(combine(concat(datasets::Small2DShapes(), datasets::Tiny4DShapes()), framework::dataset::make("DataType", DataType::QASYMM8)), framework::dataset::make("Axis", 0))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, CLWidthConcatenateLayerFixture< uint8_t >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::ConcatenateLayerShapes(), framework::dataset::make("DataType", DataType::QASYMM8)), framework::dataset::make("Axis", 0))) | |