Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2023 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "BaseIterator.hpp" |
| 9 | |
| 10 | #include "RefBaseWorkload.hpp" |
| 11 | #include <armnn/backends/WorkloadData.hpp> |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | class RefElementwiseBinaryWorkload : public RefBaseWorkload<ElementwiseBinaryQueueDescriptor> |
| 17 | { |
| 18 | public: |
| 19 | using RefBaseWorkload<ElementwiseBinaryQueueDescriptor>::m_Data; |
| 20 | |
| 21 | RefElementwiseBinaryWorkload(const ElementwiseBinaryQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 22 | void Execute() const override; |
| 23 | void ExecuteAsync(ExecutionData& executionData) override; |
| 24 | |
| 25 | private: |
| 26 | void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; |
| 27 | }; |
| 28 | |
| 29 | } // namespace armnn |