From 2eb5d16b839cbc28c6cb7f0de7a0bf15290b425a Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 2 Jul 2021 09:01:49 +0100 Subject: Align kernel/operator header layout - Redirect validate documentation to configure - Align header names - Align class layout Signed-off-by: Georgios Pinitas Change-Id: Ia40f67383826a66e9f9a33745d66805551e31a3a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5897 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio --- .../gpu/cl/operators/ClElementwiseOperations.h | 45 +++++----------------- 1 file changed, 10 insertions(+), 35 deletions(-) (limited to 'src/runtime/gpu/cl/operators/ClElementwiseOperations.h') diff --git a/src/runtime/gpu/cl/operators/ClElementwiseOperations.h b/src/runtime/gpu/cl/operators/ClElementwiseOperations.h index b9ab1405c8..c01b107d97 100644 --- a/src/runtime/gpu/cl/operators/ClElementwiseOperations.h +++ b/src/runtime/gpu/cl/operators/ClElementwiseOperations.h @@ -39,8 +39,6 @@ namespace opencl class ClElementwiseDivision : public IClOperator { public: - /** Default Constructor */ - ClElementwiseDivision() = default; /** Configure function for a given list of arguments. * * @param[in] compile_context The compile context to be used. @@ -50,12 +48,9 @@ public: * @param[in] act_info (Optional) Activation layer information in case of a fused activation. */ void configure(const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info = ActivationLayerInfo()); - /** Static function to check if given info will lead to a valid configuration of @ref ClElementwiseDivision + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src1 First source tensor info. Data types supported: F16/F32. - * @param[in] src2 Second source tensor info. Data types supported: same as @p src1. - * @param[in] dst Destination tensor info. Data types supported: same as @p src1. - * @param[in] act_info (Optional) Activation layer information in case of a fused activation. + * Similar to @ref ClElementwiseDivision::configure() * * @return a status */ @@ -70,8 +65,6 @@ public: class ClElementwiseMax : public IClOperator { public: - /** Default Constructor */ - ClElementwiseMax() = default; /** Configure function for a given list of arguments. * * @param[in] compile_context The compile context to be used. @@ -81,12 +74,9 @@ public: * @param[in] act_info (Optional) Activation layer information in case of a fused activation. */ void configure(const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info = ActivationLayerInfo()); - /** Static function to check if given info will lead to a valid configuration of @ref opencl::kernels::ClArithmeticKernel for max + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src1 First source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/S32/U32/F16/F32. - * @param[in] src2 Second source tensor info. Data types supported: same as @p src1. - * @param[in] dst Destination tensor info. Data types supported: same as @p src1. - * @param[in] act_info (Optional) Activation layer information in case of a fused activation. + * Similar to @ref ClElementwiseMax::configure() * * @return a status */ @@ -101,8 +91,6 @@ public: class ClElementwiseMin : public IClOperator { public: - /** Default Constructor */ - ClElementwiseMin() = default; /** Configure function for a given list of arguments. * * @param[in] compile_context The compile context to be used. @@ -112,12 +100,9 @@ public: * @param[in] act_info (Optional) Activation layer information in case of a fused activation. */ void configure(const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info = ActivationLayerInfo()); - /** Static function to check if given info will lead to a valid configuration of @ref opencl::kernels::ClArithmeticKernel for min + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src1 First source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/S32/U32/F16/F32. - * @param[in] src2 Second source tensor info. Data types supported: same as @p src1. - * @param[in] dst Destination tensor info. Data types supported: same as @p src1. - * @param[in] act_info (Optional) Activation layer information in case of a fused activation. + * Similar to @ref ClElementwiseMin::configure() * * @return a status */ @@ -132,8 +117,6 @@ public: class ClElementwiseSquaredDiff : public IClOperator { public: - /** Default Constructor */ - ClElementwiseSquaredDiff() = default; /** Configure function for a given list of arguments. * * @param[in] compile_context The compile context to be used. @@ -143,12 +126,9 @@ public: * @param[in] act_info (Optional) Activation layer information in case of a fused activation. */ void configure(const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info = ActivationLayerInfo()); - /** Static function to check if given info will lead to a valid configuration of @ref opencl::kernels::ClArithmeticKernel for squared difference + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src1 First source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/F32. - * @param[in] src2 Second source tensor info. Data types supported: same as @p src1. - * @param[in] dst Destination tensor info. Data types supported: same as @p src1. - * @param[in] act_info (Optional) Activation layer information in case of a fused activation. + * Similar to @ref ClElementwiseSquaredDiff::configure() * * @return a status */ @@ -163,8 +143,6 @@ public: class ClElementwisePower : public IClOperator { public: - /** Default Constructor */ - ClElementwisePower() = default; /** Configure function for a given list of arguments. * * @param[in] compile_context The compile context to be used. @@ -174,12 +152,9 @@ public: * @param[in] act_info (Optional) Activation layer information in case of a fused activation. */ void configure(const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info = ActivationLayerInfo()); - /** Static function to check if given info will lead to a valid configuration of @ref opencl::kernels::ClArithmeticKernel for power + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src1 First source tensor info. Data types supported: F16/F32. - * @param[in] src2 Second source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: F16/F32. - * @param[in] act_info (Optional) Activation layer information in case of a fused activation. + * Similar to @ref ClElementwisePower::configure() * * @return a status */ -- cgit v1.2.1