Nattapat Chaimanowong | c6a41ff | 2019-01-29 09:56:02 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <backendsCommon/Workload.hpp> |
| 9 | |
| 10 | #include <arm_compute/runtime/CL/CLFunctions.h> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | arm_compute::Status ClGreaterWorkloadValidate(const TensorInfo& input0, |
| 16 | const TensorInfo& input1, |
| 17 | const TensorInfo& output); |
| 18 | |
| 19 | template<DataType T> |
| 20 | class ClGreaterWorkload : public MultiTypedWorkload<GreaterQueueDescriptor, T, DataType::Boolean> |
| 21 | { |
| 22 | public: |
| 23 | ClGreaterWorkload(const GreaterQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 24 | void Execute() const override; |
| 25 | |
| 26 | private: |
| 27 | using MultiTypedWorkload<GreaterQueueDescriptor, T, DataType::Boolean>::m_Data; |
| 28 | mutable arm_compute::CLComparison m_GreaterLayer; |
| 29 | }; |
| 30 | |
| 31 | using ClGreaterFloat32Workload = ClGreaterWorkload<DataType::Float32>; |
| 32 | using ClGreaterUint8Workload = ClGreaterWorkload<DataType::QuantisedAsymm8>; |
| 33 | |
| 34 | } //namespace armnn |