aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2019-05-15 14:06:02 +0100
committerManuel Bottini <manuel.bottini@arm.com>2019-05-16 15:26:51 +0000
commit6ac5992dc81534e81482892f8fb8c03790c57192 (patch)
tree91255fcd0d4d6a37eeb1784ee9bc2303c1ef2f49 /src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp
parent80e55db85bb4842ef287c2732fc98ad869748b0a (diff)
downloadComputeLibrary-6ac5992dc81534e81482892f8fb8c03790c57192.tar.gz
COMPMID-2254
Implement NEAbsLayer Change-Id: I88571010d727b2ac8d9fd3838a4d170cf66bf0ce Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/1150 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp')
-rw-r--r--src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp
index d0117d0131..231b8aa445 100644
--- a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp
+++ b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp
@@ -74,4 +74,15 @@ Status NELogLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
return NEElementwiseUnaryKernel::validate(ElementWiseUnary::LOG, input, output);
}
+void NEAbsLayer::configure(const ITensor *input, ITensor *output)
+{
+ auto k = arm_compute::support::cpp14::make_unique<NEElementwiseUnaryKernel>();
+ k->configure(ElementWiseUnary::ABS, input, output);
+ _kernel = std::move(k);
+}
+Status NEAbsLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
+{
+ return NEElementwiseUnaryKernel::validate(ElementWiseUnary::ABS, input, output);
+}
+
} // namespace arm_compute