Compute Library
 23.11
FFT.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#include "arm_compute/runtime/CL/functions/CLFFT1D.h"
#include "arm_compute/runtime/CL/functions/CLFFT2D.h"
#include "arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h"
#include "tests/CL/CLAccessor.h"
#include "tests/datasets/SmallConvolutionLayerDataset.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/FFTFixture.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 CLFFT1DFixture = FFTValidationFixture< CLTensor, CLAccessor, CLFFT1D, FFT1DInfo, T >
 
template<typename T >
using CLFFT2DFixture = FFTValidationFixture< CLTensor, CLAccessor, CLFFT2D, FFT2DInfo, T >
 
template<typename T >
using CLFFTConvolutionLayerMixedDataLayoutFixture = FFTConvolutionValidationFixture< CLTensor, CLAccessor, CLFFTConvolutionLayer, T, true >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 3, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(11U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(25U, 13U, 2U), 2, DataType::F32), }), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F16), TensorInfo(TensorShape(16U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(11U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(25U, 13U, 2U), 2, DataType::F32), })), framework::dataset::make("Axis", { 0, 0, 0, 2, 0, 0 })), framework::dataset::make("Expected", { false, false, false, false, false, true })), input_info, output_info, axis, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLFFT1DFixture< float >, framework::DatasetMode::ALL, combine(shapes_1d, framework::dataset::make("DataType", DataType::F32)))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 combine (shapes_1d, framework::dataset::make("DataType", DataType::F16)))
 
 zip (zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(32U, 25U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 25U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 25U, 2U), 3, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 25U, 2U), 2, DataType::F32), }), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 25U, 2U), 2, DataType::F16), TensorInfo(TensorShape(16U, 25U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 25U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 2, DataType::F32), TensorInfo(TensorShape(32U, 25U, 2U), 2, DataType::F32), })), framework::dataset::make("Expected", { false, false, false, false, true }))
 
 ARM_COMPUTE_EXPECT (bool(s)==expected, framework::LogLevel::ERRORS)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLFFT2DFixture< float >, framework::DatasetMode::ALL, combine(shapes_2d, framework::dataset::make("DataType", DataType::F32)))
 
 combine (shapes_2d, framework::dataset::make("DataType", DataType::F16)))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLFFTConvolutionLayerFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(datasets::SmallFFTConvolutionLayerDataset(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset))
 
 FIXTURE_DATA_TEST_CASE (RunMixedDataLayout, CLFFTConvolutionLayerMixedDataLayoutFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(datasets::SmallFFTConvolutionLayerDataset(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset))
 
 combine (combine(combine(datasets::SmallFFTConvolutionLayerDataset(), framework::dataset::make("DataType", DataType::F16)), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset))
 

Variables

 CLFFT1DFixture< half >
 
 CLFFT2DFixture< half >
 
 CLFFTConvolutionLayerFixture< half >