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 | |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 8 | #include <backends/Workload.hpp> |
Matthew Bentham | 14e4669 | 2018-09-20 15:35:30 +0100 | [diff] [blame] | 9 | |
| 10 | #include <arm_compute/runtime/CL/CLFunctions.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, |
| 17 | const TensorInfo& output); |
| 18 | |
| 19 | class ClDivisionFloatWorkload : public FloatWorkload<DivisionQueueDescriptor> |
| 20 | { |
| 21 | public: |
| 22 | ClDivisionFloatWorkload(const DivisionQueueDescriptor& descriptor, const |
| 23 | WorkloadInfo& info); |
| 24 | |
| 25 | using FloatWorkload<DivisionQueueDescriptor>::FloatWorkload; |
| 26 | void Execute() const override; |
| 27 | |
| 28 | private: |
| 29 | mutable arm_compute::CLArithmeticDivision m_ArithmeticDivision; |
| 30 | }; |
| 31 | |
| 32 | } //namespace armnn |