Compute Library
 22.11
Transpose.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NETranspose.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/TransposeFixture.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 NETransposeFixture = TransposeValidationFixture< Tensor, Accessor, NETranspose, T >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(21U, 13U), 1, DataType::U16), TensorInfo(TensorShape(20U, 13U), 1, DataType::U8), TensorInfo(TensorShape(20U, 16U), 1, DataType::U16), TensorInfo(TensorShape(20U, 16U), 1, DataType::U32), }), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(21U, 13U), 1, DataType::U16), TensorInfo(TensorShape(31U, 20U), 1, DataType::U16), TensorInfo(TensorShape(16U, 20U), 1, DataType::U16), TensorInfo(TensorShape(16U, 20U), 1, DataType::U32), })), framework::dataset::make("Expected", { false, false, true, true })), a_info, output_info, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NETransposeFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(concat(datasets::Small1DShapes(), datasets::Small2DShapes()), framework::dataset::make("DataType", DataType::U8)))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NETransposeFixture< uint8_t >, framework::DatasetMode::NIGHTLY, combine(concat(datasets::Large1DShapes(), datasets::Large2DShapes()), framework::dataset::make("DataType", DataType::U8)))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NETransposeFixture< uint16_t >, framework::DatasetMode::PRECOMMIT, combine(concat(datasets::Small1DShapes(), datasets::Small2DShapes()), framework::dataset::make("DataType", DataType::U16)))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NETransposeFixture< uint16_t >, framework::DatasetMode::NIGHTLY, combine(concat(datasets::Large1DShapes(), datasets::Large2DShapes()), framework::dataset::make("DataType", DataType::U16)))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NETransposeFixture< uint32_t >, framework::DatasetMode::PRECOMMIT, combine(concat(datasets::Small1DShapes(), datasets::Small2DShapes()), framework::dataset::make("DataType", DataType::U32)))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NETransposeFixture< uint32_t >, framework::DatasetMode::NIGHTLY, combine(concat(datasets::Large1DShapes(), datasets::Large2DShapes()), framework::dataset::make("DataType", DataType::U32)))