MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / DATA_TEST_CASE

Function DATA_TEST_CASE

tests/validation/CPP/DFT.cpp:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66TEST_SUITE(DFT1D)
67DATA_TEST_CASE(Real, framework::DatasetMode::ALL, shapes_1d_dft, shape)
68{
69 SimpleTensor<float> src{shape, DataType::F32, 1};
70 std::uniform_real_distribution<float> distribution(-5.f, 5.f);
71 library->fill(src, distribution, 0);
72
73 const bool is_odd = shape.x() % 2;
74
75 // Forward pass
76 auto forward = reference::rdft_1d(src);
77 // Backward pass
78 auto backward = reference::ridft_1d(forward, is_odd);
79
80 // Validate with input
81 validate(SimpleTensorAccessor<float>(src), backward, RelativeTolerance<float>(0.1f));
82}
83
84DATA_TEST_CASE(Complex, framework::DatasetMode::ALL, shapes_1d_dft, shape)
85{

Calls 15

rdft_1dFunction · 0.85
ridft_1dFunction · 0.85
dft_1dFunction · 0.85
rdft_2dFunction · 0.85
ridft_2dFunction · 0.85
dft_2dFunction · 0.85
scaled_dimensionsFunction · 0.85
conv2d_dftFunction · 0.85
convolution_layerFunction · 0.85
validateFunction · 0.50
TensorShapeClass · 0.50
fillMethod · 0.45

Tested by

no test coverage detected