Compute Library
 22.05
Split.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NESplit.h"
#include "arm_compute/runtime/Tensor.h"
#include "arm_compute/runtime/TensorAllocator.h"
#include "tests/NEON/Accessor.h"
#include "tests/datasets/SplitDataset.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/SplitFixture.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

template<typename T >
using NESplitFixture = SplitFixture< Tensor, ITensor, Accessor, NESplit, T >
 
template<typename T >
using NESplitShapesFixture = SplitShapesFixture< Tensor, ITensor, Accessor, NESplit, T >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32) }), framework::dataset::make("Axis", { 4, 2, 2 })), framework::dataset::make("Splits", { 4, 5, 4 })), framework::dataset::make("Expected", { false, false, true })), input_info, axis, splits, expected)
 
 DATA_TEST_CASE (ValidateSplitShapes, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32) }), framework::dataset::make("Axis", { 2, 2 })), framework::dataset::make("Splits", { std::vector< TensorInfo >{TensorInfo(TensorShape(27U, 3U, 4U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 4U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 8U, 2U), 1, DataType::F32)}, std::vector< TensorInfo >{TensorInfo(TensorShape(27U, 3U, 3U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 13U, 2U), 1, DataType::F32)} })), framework::dataset::make("Expected", { true, true })), input_info, axis, splits, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NESplitFixture< float >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallSplitDataset(), framework::dataset::make("DataType", DataType::F32)))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NESplitFixture< float >, framework::DatasetMode::NIGHTLY, combine(datasets::LargeSplitDataset(), framework::dataset::make("DataType", DataType::F32)))
 
 FIXTURE_DATA_TEST_CASE (RunSmallSplitShapes, NESplitShapesFixture< float >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallSplitShapesDataset(), framework::dataset::make("DataType", DataType::F32)))