aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/NEON/functions/NEPhase.cpp
diff options
context:
space:
mode:
authorJohn Richardson <john.richardson@arm.com>2017-10-13 20:51:42 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit63e5041e6ea0f7fb57a1cc349f1325785fa800fa (patch)
treec83d31baf2cb7fb80ad127396fe6e55ad0959273 /src/runtime/NEON/functions/NEPhase.cpp
parent2d09993bed545f836cd624577c3ae749de6329b7 (diff)
downloadComputeLibrary-63e5041e6ea0f7fb57a1cc349f1325785fa800fa.tar.gz
COMPMID-576: Port Phase to new validation
Change-Id: Ice08031c997cf8162a4358deb059db857ede2382 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93585 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/runtime/NEON/functions/NEPhase.cpp')
-rw-r--r--src/runtime/NEON/functions/NEPhase.cpp17
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);
+ }
}