Laurent Carlier | 749294b | 2020-06-01 09:03:17 +0100 | [diff] [blame] | 1 | // |
Matthew Sloyan | 2d213a7 | 2022-06-30 17:13:04 +0100 | [diff] [blame] | 2 | // Copyright © 2022 Arm Ltd and Contributors. All rights reserved. |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Finn Williams | 73c547d | 2022-02-15 20:47:34 +0000 | [diff] [blame] | 8 | #include "RefBaseWorkload.hpp" |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame] | 9 | #include <armnn/backends/WorkloadData.hpp> |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 10 | #include "BaseIterator.hpp" |
| 11 | #include "Decoders.hpp" |
| 12 | #include "Encoders.hpp" |
| 13 | |
| 14 | |
| 15 | namespace armnn |
| 16 | { |
| 17 | |
Finn Williams | 73c547d | 2022-02-15 20:47:34 +0000 | [diff] [blame] | 18 | class RefFullyConnectedWorkload : public RefBaseWorkload<FullyConnectedQueueDescriptor> |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 19 | { |
| 20 | public: |
| 21 | explicit RefFullyConnectedWorkload(const FullyConnectedQueueDescriptor& descriptor, |
| 22 | const WorkloadInfo& info); |
| 23 | |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 24 | void Execute() const override; |
Matthew Sloyan | 2d213a7 | 2022-06-30 17:13:04 +0100 | [diff] [blame] | 25 | void ExecuteAsync(ExecutionData& executionData) override; |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 26 | |
| 27 | private: |
Finn Williams | b8181f7 | 2021-04-07 10:23:21 +0100 | [diff] [blame] | 28 | void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 29 | |
Finn Williams | d0420cb | 2022-05-18 13:24:14 +0100 | [diff] [blame] | 30 | const TensorShape m_InputShape; |
| 31 | const TensorShape m_WeightShape; |
| 32 | const TensorShape m_OutputShape; |
| 33 | const unsigned int m_NumActivations; |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } //namespace armnn |