23.11
|
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NEReorgLayer.h"
#include "arm_compute/runtime/Tensor.h"
#include "arm_compute/runtime/TensorAllocator.h"
#include "tests/NEON/Accessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/ReorgLayerDataset.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/ReorgLayerFixture.h"
Go to the source code of this file.
Namespaces | |
arm_compute | |
Copyright (c) 2017-2023 Arm Limited. | |
arm_compute::test | |
arm_compute::test::validation | |
Typedefs | |
template<typename T > | |
using | NEReorgLayerFixture = ReorgLayerValidationFixture< Tensor, Accessor, NEReorgLayer, T > |
Functions | |
DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(10U, 12U, 1U, 2U), 1, DataType::S64), TensorInfo(TensorShape(10U, 12U, 1U, 2U), 1, DataType::F32), TensorInfo(TensorShape(10U, 12U, 1U, 2U), 1, DataType::F32), TensorInfo(TensorShape(3U, 12U, 4U, 2U), 1, DataType::F32), TensorInfo(TensorShape(3U, 12U, 4U, 2U), 1, DataType::F32), }), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(3U, 4U, 10U, 2U), 1, DataType::S64), TensorInfo(TensorShape(5U, 6U, 4U, 2U), 1, DataType::F32), TensorInfo(TensorShape(5U, 6U, 2, 2U), 1, DataType::F32), TensorInfo(TensorShape(1U, 4U, 36U, 2U), 1, DataType::F32), TensorInfo(TensorShape(1U, 4U, 36U, 2U), 1, DataType::F16), })), framework::dataset::make("Stride", { 2, 2, 4, 3 })), framework::dataset::make("Expected", { false, true, false, true, false })), input_info, output_info, stride, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmall, NEReorgLayerFixture< int32_t >, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallReorgLayerDataset(), framework::dataset::make("DataType", DataType::S32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, NEReorgLayerFixture< int32_t >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeReorgLayerDataset(), framework::dataset::make("DataType", DataType::S32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T> | |
[CLActivationLayer Test snippet] More... | |
combine (combine(datasets::SmallReorgLayerDataset(), framework::dataset::make("DataType", DataType::S16)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, NEReorgLayerFixture< int16_t >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeReorgLayerDataset(), framework::dataset::make("DataType", DataType::S16)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
combine (combine(datasets::SmallReorgLayerDataset(), framework::dataset::make("DataType", DataType::S8)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, NEReorgLayerFixture< int8_t >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeReorgLayerDataset(), framework::dataset::make("DataType", DataType::S8)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) | |
Variables | |
NEReorgLayerFixture< int16_t > | |
NEReorgLayerFixture< int8_t > | |