Compute Library
 22.05
StackLayer.cpp File Reference
#include "arm_compute/core/Helpers.h"
#include "arm_compute/core/Types.h"
#include "arm_compute/core/utils/misc/ShapeCalculator.h"
#include "arm_compute/runtime/NEON/functions/NEStackLayer.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/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/StackLayerFixture.h"
#include <vector>

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

template<typename T >
using NEStackLayerFixture = StackLayerValidationFixture< Tensor, ITensor, Accessor, NEStackLayer, T >
 Fixture to use. More...
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo", { std::vector< TensorInfo >{ TensorInfo(TensorShape(9U, 8U), 1, DataType::U8) }, std::vector< TensorInfo >{ TensorInfo(TensorShape(1U, 2U), 1, DataType::U8), TensorInfo(TensorShape(1U, 2U), 1, DataType::U8), TensorInfo(TensorShape(1U, 2U), 1, DataType::U8)}, std::vector< TensorInfo >{ TensorInfo(TensorShape(2U, 3U), 1, DataType::S32) }, std::vector< TensorInfo >{ TensorInfo(TensorShape(7U, 5U, 3U, 8U, 2U), 1, DataType::S32), TensorInfo(TensorShape(7U, 5U, 3U, 8U, 2U), 1, DataType::S32)}, std::vector< TensorInfo >{ TensorInfo(TensorShape(9U, 8U), 1, DataType::S32) }, }), framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(1U, 9U, 8U), 1, DataType::U8), TensorInfo(TensorShape(1U, 3U, 2U), 1, DataType::U8), TensorInfo(TensorShape(1U, 2U, 3U), 1, DataType::S32), TensorInfo(TensorShape(3U, 7U, 5U), 1, DataType::S32), TensorInfo(TensorShape(1U, 2U, 3U), 1, DataType::U8), })), framework::dataset::make("Axis", { -3, 1, -4, -3, 1 })), framework::dataset::make("Expected", { true, true, false, false, false })), input_info, output_info, axis, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NEStackLayerFixture< int >, framework::DatasetMode::ALL, combine(combine(shapes_1d_small, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< int >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_1d_large, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 combine (combine(shapes_1d_small, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< short >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_1d_large, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 combine (combine(shapes_1d_small, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< char >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_1d_large, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 combine (combine(shapes_2d_small, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< int >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_2d_large, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 combine (combine(shapes_2d_small, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< short >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_2d_large, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 combine (combine(shapes_2d_small, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< char >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_2d_large, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 combine (combine(shapes_3d_small, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< int >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_3d_large, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 combine (combine(shapes_3d_small, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< short >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_3d_large, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 combine (combine(shapes_3d_small, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< char >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_3d_large, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 combine (combine(shapes_4d_small, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< int >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_4d_large, framework::dataset::make("DataType", { DataType::S32 })), n_values))
 
 combine (combine(shapes_4d_small, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< short >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_4d_large, framework::dataset::make("DataType", { DataType::S16 })), n_values))
 
 combine (combine(shapes_4d_small, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEStackLayerFixture< char >, framework::DatasetMode::NIGHTLY, combine(combine(shapes_4d_large, framework::dataset::make("DataType", { DataType::S8 })), n_values))
 

Variables

 NEStackLayerFixture< short >
 
 NEStackLayerFixture< char >
 
 NEStackLayerFixture< int >