aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h
diff options
context:
space:
mode:
authorGeorge Wort <george.wort@arm.com>2019-01-15 11:00:29 +0000
committerGeorge Wort <george.wort@arm.com>2019-01-21 16:37:31 +0000
commita1e7e2818ab282e4d3b707feb5783b4bd4fbe45b (patch)
tree30c4395d0b18e90f5e1cbbf5ee1612c2ea679774 /arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h
parentd88590f4022bfb6eda3bad4fa599727bab723667 (diff)
downloadComputeLibrary-a1e7e2818ab282e4d3b707feb5783b4bd4fbe45b.tar.gz
COMPMID-1768: NEON: Implement RealDiv
Change-Id: I0868669f7b733df141794fba1d79436e7581bd3a Reviewed-on: https://review.mlplatform.org/426 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h')
-rw-r--r--arm_compute/core/NEON/kernels/NEElementwiseOperationKernel.h41
1 files changed, 33 insertions, 8 deletions
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
*