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

Method configure

src/runtime/NEON/functions/NEFFT2D.cpp:45–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void NEFFT2D::configure(const ITensor *input, ITensor *output, const FFT2DInfo &config)
46{
47 ARM_COMPUTE_TRACE_EVENT(ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, "NEFFT2D::configure");
48 ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
49 ARM_COMPUTE_ERROR_THROW_ON(NEFFT2D::validate(input->info(), output->info(), config));
50 ARM_COMPUTE_LOG_PARAMS(input, output, config);
51
52 // Setup first pass
53 FFT1DInfo first_pass_config;
54 first_pass_config.axis = config.axis0;
55 first_pass_config.direction = config.direction;
56 _memory_group.manage(&_first_pass_tensor);
57 _first_pass_func.configure(input, &_first_pass_tensor, first_pass_config);
58
59 // Setup second pass
60 FFT1DInfo second_pass_config;
61 second_pass_config.axis = config.axis1;
62 second_pass_config.direction = config.direction;
63 _second_pass_func.configure(&_first_pass_tensor, output, second_pass_config);
64 _first_pass_tensor.allocator()->allocate();
65}
66
67Status NEFFT2D::validate(const ITensorInfo *input, const ITensorInfo *output, const FFT2DInfo &config)
68{

Callers

nothing calls this directly

Calls 5

validateFunction · 0.50
infoMethod · 0.45
manageMethod · 0.45
allocateMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected