diff options
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/NEON/functions/NEPhase.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/runtime/NEON/functions/NEPhase.cpp b/src/runtime/NEON/functions/NEPhase.cpp index 436d22f3af..63922811d9 100644 --- a/src/runtime/NEON/functions/NEPhase.cpp +++ b/src/runtime/NEON/functions/NEPhase.cpp @@ -30,9 +30,18 @@ using namespace arm_compute; -void NEPhase::configure(const ITensor *input1, const ITensor *input2, ITensor *output) +void NEPhase::configure(const ITensor *input1, const ITensor *input2, ITensor *output, PhaseType phase_type) { - auto k = arm_compute::support::cpp14::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::SIGNED>>(); - k->configure(input1, input2, nullptr, output); - _kernel = std::move(k); + if(phase_type == PhaseType::UNSIGNED) + { + auto k = arm_compute::support::cpp14::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::UNSIGNED>>(); + k->configure(input1, input2, nullptr, output); + _kernel = std::move(k); + } + else + { + auto k = arm_compute::support::cpp14::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::SIGNED>>(); + k->configure(input1, input2, nullptr, output); + _kernel = std::move(k); + } } |