diff options
author | Sheri Zhang <sheri.zhang@arm.com> | 2021-02-02 11:49:34 +0000 |
---|---|---|
committer | Sheri Zhang <sheri.zhang@arm.com> | 2021-02-08 13:35:26 +0000 |
commit | 7e20e29904c98adae5a91c6492fd78da88b7a9bf (patch) | |
tree | 96309359fd28c2244984ed1d4d1a9069528b64dc /arm_compute/runtime/CL/functions/CLCropResize.h | |
parent | afc9c3df7600dcecf12d3d3a4686d2008502a813 (diff) | |
download | ComputeLibrary-7e20e29904c98adae5a91c6492fd78da88b7a9bf.tar.gz |
Make memset/copy functions state-less
Port following functions:
- CLCopy
- CLFill
- CLPermute
- CLReshapeLayer
- CLCropResize
Resolves: COMPMID-4002
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com>
Change-Id: I8392aa515aaeb5b44dab6122be6a795d08376d5f
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5003
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLCropResize.h')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLCropResize.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/arm_compute/runtime/CL/functions/CLCropResize.h b/arm_compute/runtime/CL/functions/CLCropResize.h index e781cfe61f..0dc3c48b32 100644 --- a/arm_compute/runtime/CL/functions/CLCropResize.h +++ b/arm_compute/runtime/CL/functions/CLCropResize.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. + * Copyright (c) 2019-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -27,6 +27,9 @@ #include "arm_compute/core/CL/ICLTensor.h" #include "arm_compute/runtime/CL/CLTensor.h" +#include "arm_compute/runtime/CL/functions/CLCopy.h" +#include "arm_compute/runtime/CL/functions/CLCrop.h" +#include "arm_compute/runtime/CL/functions/CLFill.h" #include "arm_compute/runtime/CL/functions/CLScale.h" #include <cstdint> @@ -36,8 +39,6 @@ namespace arm_compute { // Forward Declarations class CLCompileContext; -class CLCopyKernel; -class CLCropKernel; class ITensor; class ITensorInfo; @@ -125,12 +126,12 @@ public: InterpolationPolicy _method; float _extrapolation_value; - std::vector<std::unique_ptr<CLScale>> _scale; - std::vector<std::unique_ptr<CLCopyKernel>> _copy; - std::vector<std::unique_ptr<CLTensor>> _crop_results; - std::vector<std::unique_ptr<CLTensor>> _scaled_results; + std::vector<std::unique_ptr<CLScale>> _scale; + std::vector<std::unique_ptr<CLCopy>> _copy; + std::vector<std::unique_ptr<CLTensor>> _crop_results; + std::vector<std::unique_ptr<CLTensor>> _scaled_results; - std::vector<std::unique_ptr<ICLKernel>> _internal_kernels; + std::vector<std::unique_ptr<IFunction>> _internal_functions; }; } // namespace arm_compute #endif /* ARM_COMPUTE_CL_CROP_RESIZE_H */ |