diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-07-15 18:10:17 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-07-16 13:17:30 +0000 |
commit | f738fe6b6e059916294c48b942952c261569df18 (patch) | |
tree | d21afcfa2f5c8db50a1debb8702d25b7be581f4c /arm_compute/core | |
parent | 85b7599eb1dd5c9f5a61ac70a7b18e908b4ac536 (diff) | |
download | ComputeLibrary-f738fe6b6e059916294c48b942952c261569df18.tar.gz |
COMPMID-3389: Async support to CLElementwiseUnaryLayerKernel kernels/functions
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Change-Id: I2ce75a4705cfd75e30aefa0a2ea31e751b975469
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3579
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core')
-rw-r--r-- | arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h b/arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h index ae358b02e3..f8f158c5bc 100644 --- a/arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h +++ b/arm_compute/core/CL/kernels/CLElementWiseUnaryLayerKernel.h @@ -30,27 +30,25 @@ namespace arm_compute { -class ICLTensor; - /** Interface for the elementwise unary operator */ -class CLElementWiseUnaryLayerKernel : public ICLSimpleKernel +class CLElementWiseUnaryLayerKernel : public ICLKernel { public: /** Initialise the kernel's inputs, output. * - * @param[in] input First tensor input. Data types supported: F16/F32. - * @param[out] output Output tensor. Data types supported: Same as @p input. + * @param[in] input First tensor input info. Data types supported: F16/F32. + * @param[out] output Output tensor info. Data types supported: Same as @p input. * @param[in] op Element wise unary operation to perform. */ - void configure(const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op); + void configure(const ITensorInfo *input, ITensorInfo *output, const ElementWiseUnary &op); /** Initialise the kernel's inputs, output. * * @param[in] compile_context The compile context to be used. - * @param[in] input First tensor input. Data types supported: F16/F32. - * @param[out] output Output tensor. Data types supported: Same as @p input. + * @param[in] input First tensor input info. Data types supported: F16/F32. + * @param[out] output Output tensor info. Data types supported: Same as @p input. * @param[in] op Element wise unary operation to perform. */ - void configure(const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ElementWiseUnary &op); + void configure(const CLCompileContext &compile_context, const ITensorInfo *input, ITensorInfo *output, const ElementWiseUnary &op); /** Static function to check if given info will lead to a valid configuration of @ref CLElementWiseUnaryLayerKernel * * @param[in] input First tensor input info. Data types supported: F16/F32. @@ -62,7 +60,8 @@ public: static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ElementWiseUnary &op); // Inherited methods overridden: - void run(const Window &window, cl::CommandQueue &queue) override; + void run_op(const InputTensorMap &inputs, const OutputTensorMap &outputs, + const Window &window, cl::CommandQueue &queue) override; }; } // namespace arm_compute #endif /* ARM_COMPUTE_CLELEMENTWISEUNARYLAYERKERNEL_H */ |