From f24411ffc842970609a1fb6ba2f9527cfb681dbd Mon Sep 17 00:00:00 2001 From: giuros01 Date: Thu, 16 May 2019 11:47:13 +0100 Subject: COMPMID-2255: Implement ABS operator for CL Change-Id: I8867953f8ae84a77f126aedd32b2f98c062905b1 Signed-off-by: giuros01 Reviewed-on: https://review.mlplatform.org/c/1151 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas --- src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp') diff --git a/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp b/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp index c3e472d11b..14e77eadce 100644 --- a/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp +++ b/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp @@ -74,4 +74,15 @@ Status CLSinLayer::validate(const ITensorInfo *input, const ITensorInfo *output) return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::SIN); } +void CLAbsLayer::configure(const ICLTensor *input, ICLTensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique(); + k->configure(input, output, ElementWiseUnary::ABS); + _kernel = std::move(k); +} +Status CLAbsLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::ABS); +} + } // namespace arm_compute -- cgit v1.2.1