From 6a4d5426637b6cc967665e0455609535938c211d Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Fri, 24 May 2019 14:53:59 +0100 Subject: COMPMID-2159 Implement Round for CL Change-Id: I9d3ed4bb3cf7bef39bd0e71b3c6f266ff8187290 Signed-off-by: Usama Arif Reviewed-on: https://review.mlplatform.org/c/1226 Reviewed-by: Pablo Marquez Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- 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 b1e18ecd7e..b9ebf6972e 100644 --- a/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp +++ b/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp @@ -95,4 +95,15 @@ Status CLLogLayer::validate(const ITensorInfo *input, const ITensorInfo *output) return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::LOG); } +void CLRoundLayer::configure(const ICLTensor *input, ICLTensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique(); + k->configure(input, output, ElementWiseUnary::ROUND); + _kernel = std::move(k); +} +Status CLRoundLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::ROUND); +} + } // namespace arm_compute -- cgit v1.2.1