| 43 | } |
| 44 | |
| 45 | void 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 | |
| 67 | Status NEFFT2D::validate(const ITensorInfo *input, const ITensorInfo *output, const FFT2DInfo &config) |
| 68 | { |