Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
Matthew Bentham | 14e4669 | 2018-09-20 15:35:30 +0100 | [diff] [blame] | 9 | |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 10 | #include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h> |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | arm_compute::Status ClDivisionWorkloadValidate(const TensorInfo& input0, |
| 16 | const TensorInfo& input1, |
Mike Kelly | 07810fc | 2020-11-12 10:58:48 +0000 | [diff] [blame] | 17 | const TensorInfo& output, |
| 18 | const ActivationDescriptor* activationDescriptor = nullptr); |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 19 | |
| 20 | class ClDivisionFloatWorkload : public FloatWorkload<DivisionQueueDescriptor> |
| 21 | { |
| 22 | public: |
| 23 | ClDivisionFloatWorkload(const DivisionQueueDescriptor& descriptor, const |
| 24 | WorkloadInfo& info); |
| 25 | |
| 26 | using FloatWorkload<DivisionQueueDescriptor>::FloatWorkload; |
| 27 | void Execute() const override; |
| 28 | |
| 29 | private: |
| 30 | mutable arm_compute::CLArithmeticDivision m_ArithmeticDivision; |
| 31 | }; |
| 32 | |
| 33 | } //namespace armnn |