diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2021-02-19 18:16:44 +0000 |
---|---|---|
committer | Manuel Bottini <manuel.bottini@arm.com> | 2021-03-12 16:17:06 +0000 |
commit | 3b131ab38fa337af7818d78200b0e7bdf89c5e69 (patch) | |
tree | be9779c5647f712c5032c9aa32e8cbbb2e2d06bc /arm_compute | |
parent | 9e73c93bbd49fdd648d8f8cb77df46e7bbc9526d (diff) | |
download | ComputeLibrary-3b131ab38fa337af7818d78200b0e7bdf89c5e69.tar.gz |
Port OpenCL Scale to new API
Partially resolves: COMPMID-4190
Change-Id: I680dd80fcbe4e7568511792c60a725b2646fa6ff
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5197
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: TeresaARM <teresa.charlinreyes@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLScale.h | 20 |
1 files changed, 8 insertions, 12 deletions
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 <cstdint> +#include <memory> 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<CLFillBorderKernel> _border_handler; - std::unique_ptr<CLScaleKernel> _kernel; +private: + struct Impl; + std::unique_ptr<Impl> _impl; }; -} +} // namespace arm_compute #endif /*ARM_COMPUTE_CLSCALE_H */ |