From 3b131ab38fa337af7818d78200b0e7bdf89c5e69 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Fri, 19 Feb 2021 18:16:44 +0000 Subject: Port OpenCL Scale to new API Partially resolves: COMPMID-4190 Change-Id: I680dd80fcbe4e7568511792c60a725b2646fa6ff Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5197 Comments-Addressed: Arm Jenkins Reviewed-by: TeresaARM Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- arm_compute/runtime/CL/functions/CLScale.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'arm_compute/runtime/CL/functions/CLScale.h') diff --git a/arm_compute/runtime/CL/functions/CLScale.h b/arm_compute/runtime/CL/functions/CLScale.h index 1739190972..8a67f74bb6 100644 --- a/arm_compute/runtime/CL/functions/CLScale.h +++ b/arm_compute/runtime/CL/functions/CLScale.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -26,28 +26,24 @@ #include "arm_compute/core/KernelDescriptors.h" #include "arm_compute/core/Types.h" -#include "arm_compute/runtime/CL/CLRuntimeContext.h" #include "arm_compute/runtime/IFunction.h" -#include "src/core/CL/kernels/CLFillBorderKernel.h" -#include "src/core/CL/kernels/CLScaleKernel.h" -#include +#include namespace arm_compute { -// Forward declarations class CLCompileContext; class ICLTensor; class ITensorInfo; -/** Basic function to run @ref CLScaleKernel */ +/** Basic function to run @ref opencl::ClScale */ class CLScale : public IFunction { public: /** Default Constructor */ CLScale(); /** Default Destructor */ - ~CLScale() = default; + ~CLScale(); /** Prevent instances of this class from being copied (As this class contains pointers) */ CLScale(const CLScale &) = delete; /** Default move constructor */ @@ -89,9 +85,9 @@ public: // Inherited methods overridden: void run() override; -protected: - std::unique_ptr _border_handler; - std::unique_ptr _kernel; +private: + struct Impl; + std::unique_ptr _impl; }; -} +} // namespace arm_compute #endif /*ARM_COMPUTE_CLSCALE_H */ -- cgit v1.2.1