From a1e7e2818ab282e4d3b707feb5783b4bd4fbe45b Mon Sep 17 00:00:00 2001 From: George Wort Date: Tue, 15 Jan 2019 11:00:29 +0000 Subject: COMPMID-1768: NEON: Implement RealDiv Change-Id: I0868669f7b733df141794fba1d79436e7581bd3a Reviewed-on: https://review.mlplatform.org/426 Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- .../NEON/kernels/NEElementwiseOperationKernel.h | 41 +++++++++++++++++----- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h b/arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h index f02f71b50e..1271da75a5 100644 --- a/arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h +++ b/arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h @@ -94,10 +94,8 @@ protected: class NEArithmeticOperationKernel : public NEElementwiseOperationKernel { public: - NEArithmeticOperationKernel() - : NEElementwiseOperationKernel() - { - } + /** Default constructor */ + NEArithmeticOperationKernel() = default; /** Static function to check if given info will lead to a valid configuration of @ref NEArithmeticOperationKernel * @@ -126,13 +124,40 @@ protected: static Status validate_arguments(const ITensorInfo &input1, const ITensorInfo &input2, const ITensorInfo &output); }; +class NEDivisionOperationKernel : public NEArithmeticOperationKernel +{ +public: + /** Default constructor */ + NEDivisionOperationKernel() = default; + + /** Static function to check if given info will lead to a valid configuration of @ref NEArithmeticOperationKernel + * + * @param[in] input1 First tensor input. Data types supported: F16/F32. + * @param[in] input2 Second tensor input. Data types supported: Same as @p input1. + * @param[in] output Output tensor. Data types supported: Same as @p input1. + */ + void configure(const ITensor *input1, const ITensor *input2, ITensor *output); + + /** Static function to check if given info will lead to a valid configuration of @ref NEArithmeticOperationKernel + * + * @param[in] input1 First tensor input info. Data types supported: F16/F32. + * @param[in] input2 Second tensor input info. Data types supported: Same as @p input1. + * @param[in] output Output tensor info. Data types supported: Same as @p input1. + * + * @return a Status + */ + static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output); + +protected: + // Inherited methods overridden: + static Status validate_arguments(const ITensorInfo &input1, const ITensorInfo &input2, const ITensorInfo &output); +}; + class NEComparisonOperationKernel : public NEElementwiseOperationKernel { public: - NEComparisonOperationKernel() - : NEElementwiseOperationKernel() - { - } + /** Default constructor */ + NEComparisonOperationKernel() = default; /** Static function to check if given info will lead to a valid configuration of @ref NEComparisonOperationKernel * -- cgit v1.2.1