diff options
Diffstat (limited to 'arm_compute/runtime/CL/functions')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLDequantizationLayer.h | 30 | ||||
-rw-r--r-- | arm_compute/runtime/CL/functions/CLGenerateProposalsLayer.h | 8 |
2 files changed, 29 insertions, 9 deletions
diff --git a/arm_compute/runtime/CL/functions/CLDequantizationLayer.h b/arm_compute/runtime/CL/functions/CLDequantizationLayer.h index b2cf3356f4..7ecf094df3 100644 --- a/arm_compute/runtime/CL/functions/CLDequantizationLayer.h +++ b/arm_compute/runtime/CL/functions/CLDequantizationLayer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -24,9 +24,10 @@ #ifndef ARM_COMPUTE_CLDEQUANTIZATIONLAYER_H #define ARM_COMPUTE_CLDEQUANTIZATIONLAYER_H -#include "arm_compute/runtime/CL/ICLSimpleFunction.h" - #include "arm_compute/core/Types.h" +#include "arm_compute/runtime/IFunction.h" + +#include <memory> namespace arm_compute { @@ -35,10 +36,22 @@ class CLCompileContext; class ICLTensor; class ITensorInfo; -/** Basic function to run @ref CLDequantizationLayerKernel that dequantizes an input tensor */ -class CLDequantizationLayer : public ICLSimpleFunction +/** Basic function to run @ref opencl::ClDequantization that dequantizes an input tensor */ +class CLDequantizationLayer : public IFunction { public: + /** Default Constructor */ + CLDequantizationLayer(); + /** Default Destructor */ + ~CLDequantizationLayer(); + /** Prevent instances of this class from being copied (As this class contains pointers) */ + CLDequantizationLayer(const CLDequantizationLayer &) = delete; + /** Default move constructor */ + CLDequantizationLayer(CLDequantizationLayer &&) = default; + /** Prevent instances of this class from being copied (As this class contains pointers) */ + CLDequantizationLayer &operator=(const CLDequantizationLayer &) = delete; + /** Default move assignment operator */ + CLDequantizationLayer &operator=(CLDequantizationLayer &&) = default; /** Set the input and output tensors. * * @param[in] input Source tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. @@ -62,6 +75,13 @@ public: * @return a status */ static Status validate(const ITensorInfo *input, const ITensorInfo *output); + + // Inherited methods overridden: + void run() override; + +private: + struct Impl; + std::unique_ptr<Impl> _impl; }; } // namespace arm_compute #endif /* ARM_COMPUTE_CLDEQUANTIZATIONLAYER_H */ diff --git a/arm_compute/runtime/CL/functions/CLGenerateProposalsLayer.h b/arm_compute/runtime/CL/functions/CLGenerateProposalsLayer.h index e6b0eed6d8..bea470712c 100644 --- a/arm_compute/runtime/CL/functions/CLGenerateProposalsLayer.h +++ b/arm_compute/runtime/CL/functions/CLGenerateProposalsLayer.h @@ -40,7 +40,7 @@ namespace arm_compute { class CLCompileContext; class CLBoundingBoxTransformKernel; -class CLDequantizationLayerKernel; +class CLDequantizationLayer; class CLComputeAllAnchorsKernel; class CLPadLayerKernel; class CLQuantizationLayer; @@ -55,7 +55,7 @@ class ITensorInfo; * -# @ref CLReshapeLayer x 2 * -# @ref CLBoundingBoxTransform * -# @ref CLPadLayerKernel - * -# @ref CLDequantizationLayerKernel x 2 + * -# @ref CLDequantizationLayer x 2 * -# @ref CLQuantizationLayer * And the following CPP functions: * -# @ref CPPBoxWithNonMaximaSuppressionLimit @@ -144,8 +144,8 @@ private: std::unique_ptr<CLComputeAllAnchorsKernel> _compute_anchors_kernel; std::unique_ptr<CLBoundingBoxTransformKernel> _bounding_box_kernel; std::unique_ptr<CLPadLayerKernel> _pad_kernel; - std::unique_ptr<CLDequantizationLayerKernel> _dequantize_anchors; - std::unique_ptr<CLDequantizationLayerKernel> _dequantize_deltas; + std::unique_ptr<CLDequantizationLayer> _dequantize_anchors; + std::unique_ptr<CLDequantizationLayer> _dequantize_deltas; std::unique_ptr<CLQuantizationLayer> _quantize_all_proposals; // CPP functions |