1 // 2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #pragma once 7 8 #include "RefBaseWorkload.hpp" 9 #include <armnn/backends/WorkloadData.hpp> 10 #include "BaseIterator.hpp" 11 #include "Decoders.hpp" 12 #include "Encoders.hpp" 13 14 15 namespace armnn 16 { 17 18 class RefFullyConnectedWorkload : public RefBaseWorkload<FullyConnectedQueueDescriptor> 19 { 20 public: 21 explicit RefFullyConnectedWorkload(const FullyConnectedQueueDescriptor& descriptor, 22 const WorkloadInfo& info); 23 24 void Execute() const override; 25 void ExecuteAsync(ExecutionData& executionData) override; 26 27 private: 28 void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; 29 30 const TensorShape m_InputShape; 31 const TensorShape m_WeightShape; 32 const TensorShape m_OutputShape; 33 const unsigned int m_NumActivations; 34 }; 35 36 } //namespace armnn 37