Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "BaseIterator.hpp" |
| 9 | |
| 10 | #include <backendsCommon/Workload.hpp> |
| 11 | #include <backendsCommon/WorkloadData.hpp> |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | class RefComparisonWorkload : public BaseWorkload<ComparisonQueueDescriptor> |
| 17 | { |
| 18 | public: |
| 19 | using BaseWorkload<ComparisonQueueDescriptor>::m_Data; |
| 20 | |
| 21 | RefComparisonWorkload(const ComparisonQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 22 | void PostAllocationConfigure() override; |
| 23 | void Execute() const override; |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 24 | void ExecuteAsync(WorkingMemDescriptor& workingMemDescriptor) override; |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 25 | |
| 26 | private: |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 27 | void PostAllocationConfigure(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs); |
| 28 | void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 29 | using InType = float; |
| 30 | using OutType = bool; |
| 31 | |
| 32 | std::unique_ptr<Decoder<InType>> m_Input0; |
| 33 | std::unique_ptr<Decoder<InType>> m_Input1; |
| 34 | std::unique_ptr<Encoder<OutType>> m_Output; |
| 35 | }; |
| 36 | |
| 37 | } // namespace armnn |