James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 1 | // |
Matthew Sloyan | 21a6a1a | 2022-06-30 17:13:04 +0100 | [diff] [blame] | 2 | // Copyright © 2022 Arm Ltd and Contributors. All rights reserved. |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "BaseIterator.hpp" |
| 9 | |
Finn Williams | 73c547d | 2022-02-15 20:47:34 +0000 | [diff] [blame] | 10 | #include "RefBaseWorkload.hpp" |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame] | 11 | #include <armnn/backends/WorkloadData.hpp> |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
Finn Williams | 73c547d | 2022-02-15 20:47:34 +0000 | [diff] [blame] | 16 | class RefLogicalUnaryWorkload : public RefBaseWorkload<ElementwiseUnaryQueueDescriptor> |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 17 | { |
| 18 | public: |
Finn Williams | 73c547d | 2022-02-15 20:47:34 +0000 | [diff] [blame] | 19 | using RefBaseWorkload<ElementwiseUnaryQueueDescriptor>::m_Data; |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 20 | |
| 21 | RefLogicalUnaryWorkload(const ElementwiseUnaryQueueDescriptor& descriptor, const WorkloadInfo& info); |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 22 | void Execute() const override; |
Matthew Sloyan | 21a6a1a | 2022-06-30 17:13:04 +0100 | [diff] [blame] | 23 | void ExecuteAsync(ExecutionData& executionData) override; |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 24 | |
| 25 | private: |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 26 | void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 27 | using InType = bool; |
| 28 | using OutType = bool; |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | } // namespace armnn |