From 6ac5992dc81534e81482892f8fb8c03790c57192 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Wed, 15 May 2019 14:06:02 +0100 Subject: COMPMID-2254 Implement NEAbsLayer Change-Id: I88571010d727b2ac8d9fd3838a4d170cf66bf0ce Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/1150 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Giuseppe Rossini --- src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime/NEON/functions') 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(); + 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 -- cgit v1.2.1