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 --- src/runtime/gpu/cl/operators/ClElementwiseUnary.h | 45 +++++++---------------- 1 file changed, 14 insertions(+), 31 deletions(-) (limited to 'src/runtime/gpu/cl/operators/ClElementwiseUnary.h') diff --git a/src/runtime/gpu/cl/operators/ClElementwiseUnary.h b/src/runtime/gpu/cl/operators/ClElementwiseUnary.h index b40e3e9a3b..b9acf6f5b8 100644 --- a/src/runtime/gpu/cl/operators/ClElementwiseUnary.h +++ b/src/runtime/gpu/cl/operators/ClElementwiseUnary.h @@ -35,8 +35,6 @@ namespace opencl class ClRsqrt : public IClOperator { public: - /** Constructor */ - ClRsqrt() = default; /** Initialize the function * * @param[in] compile_context The compile context to be used. @@ -44,10 +42,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClRsqrt + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClRsqrt::configure() * * @return a status */ @@ -58,8 +55,6 @@ public: class ClExp : public IClOperator { public: - /** Constructor */ - ClExp() = default; /** Initialize the function * * @param[in] compile_context The compile context to be used. @@ -67,10 +62,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClExp + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClExp::configure() * * @return a status */ @@ -81,8 +75,6 @@ public: class ClNeg : public IClOperator { public: - /** Constructor */ - ClNeg() = default; /** Initialize the function * * @param[in] compile_context The compile context to be used. @@ -90,10 +82,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClNeg + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClNeg::configure() * * @return a status */ @@ -104,8 +95,6 @@ public: class ClSin : public IClOperator { public: - /** Constructor */ - ClSin() = default; /** Initialize the function * * @param[in] compile_context The compile context to be used. @@ -113,10 +102,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClSin + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClSin::configure() * * @return a status */ @@ -127,8 +115,6 @@ public: class ClLog : public IClOperator { public: - /** Constructor */ - ClLog() = default; /** Initialize the function * * @param[in] compile_context The compile context to be used. @@ -136,10 +122,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClLog + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClLog::configure() * * @return a status */ @@ -157,10 +142,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClAbs + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClAbs::configure() * * @return a status */ @@ -178,10 +162,9 @@ public: * @param[out] dst Destination tensor info. Data types supported: same as @p src. */ void configure(const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst); - /** Static function to check if given info will lead to a valid configuration of @ref ClRound + /** Static function to check if given info will lead to a valid configuration * - * @param[in] src First source tensor info. Data types supported: F16/F32. - * @param[in] dst Destination tensor info. Data types supported: same as @p src. + * Similar to @ref ClRound::configure() * * @return a status */ -- cgit v1.2.1