diff options
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h b/arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h index 3ebc858d32..5a2abafe79 100644 --- a/arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h +++ b/arm_compute/runtime/CL/functions/CLDeconvolutionLayerUpsample.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -25,7 +25,7 @@ #define ARM_COMPUTE_CLDECONVOLUTIONLAYERUPSAMPLE_H #include "arm_compute/core/Types.h" -#include "arm_compute/runtime/IFunction.h" +#include "arm_compute/runtime/CL/functions/CLFill.h" #include "arm_compute/runtime/IFunction.h" #include <memory> @@ -35,13 +35,12 @@ namespace arm_compute // Forward declarations class CLDeconvolutionLayerUpsampleKernel; class CLCompileContext; -class CLMemsetKernel; class ICLTensor; class ITensorInfo; /** Basic function to execute deconvolution upsample on OpenCL. This function calls the following OpenCL kernels and functions: * - * -# @ref CLMemsetKernel + * -# @ref CLFill * -# @ref CLDeconvolutionLayerUpsampleKernel */ class CLDeconvolutionLayerUpsample : public IFunction @@ -62,6 +61,15 @@ public: /** Initialize the function's source, destination, interpolation type and border_mode. * + * Valid data layouts: + * - NHWC + * - NCHW + * + * Valid data type configurations: + * |src |dst | + * |:--------------|:--------------| + * |All |All | + * * @param[in, out] input Source tensor. Data type supported: All. * @param[out] output Destination tensor. Data type supported: same as @p input. * @param[in] info Contains padding and policies to be used in the deconvolution. @@ -74,7 +82,8 @@ public: * @param[out] output Destination tensor. Data type supported: same as @p input. * @param[in] info Contains padding and policies to be used in the deconvolution. */ - void configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const PadStrideInfo &info); + void + configure(const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const PadStrideInfo &info); /** Static function to check if given info will lead to a valid configuration of @ref CLDeconvolutionLayerUpsample * * @param[in] input Source tensor info. Data type supported: All. @@ -90,7 +99,7 @@ public: private: std::unique_ptr<CLDeconvolutionLayerUpsampleKernel> _upsample; - std::unique_ptr<CLMemsetKernel> _memset; + CLFill _fill; ICLTensor *_output; }; } // namespace arm_compute |