From f6e475c9a092bc6e0fb53f484fbf2832183a9c44 Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Fri, 10 May 2019 12:06:28 +0100 Subject: COMPMID-2268: Implement NEG for NEON. Change-Id: I90c023dbea8ea12e9af677294ba576b2bfcc02a4 Signed-off-by: Usama Arif Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/184216 Tested-by: bsgcomp Comments-Addressed: bsgcomp Reviewed-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/1099 Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez Comments-Addressed: Arm Jenkins --- src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp') diff --git a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp index 10142c732f..48f4975b1a 100644 --- a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp +++ b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp @@ -51,4 +51,16 @@ Status NEExpLayer::validate(const ITensorInfo *input, const ITensorInfo *output) { return NEElementwiseUnaryKernel::validate(ElementWiseUnary::EXP, input, output); } + +void NENegLayer::configure(const ITensor *input, ITensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique(); + k->configure(ElementWiseUnary::NEG, input, output); + _kernel = std::move(k); +} +Status NENegLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + return NEElementwiseUnaryKernel::validate(ElementWiseUnary::NEG, input, output); +} + } // namespace arm_compute -- cgit v1.2.1