ArmNN
 22.02
RefFullyConnectedWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "RefBaseWorkload.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:
22  const WorkloadInfo& info);
23 
24  void PostAllocationConfigure() override;
25 
26  void Execute() const override;
27  void ExecuteAsync(WorkingMemDescriptor& workingMemDescriptor) override;
28 
29 private:
30  void PostAllocationConfigure(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs);
31  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
32  std::unique_ptr<ScopedTensorHandle> m_Weight;
33  std::unique_ptr<ScopedTensorHandle> m_Bias;
34 
35  std::unique_ptr<Decoder<float>> m_WeightDecoder;
36  std::unique_ptr<Decoder<float>> m_BiasDecoder;
37 
38  TensorShape m_InputShape;
39  TensorShape m_OutputShape;
40  TensorShape m_WeightShape;
41  unsigned int m_NumActivations;
42 };
43 
44 } //namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.
void ExecuteAsync(WorkingMemDescriptor &workingMemDescriptor) override
RefFullyConnectedWorkload(const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info)
Contains information about TensorInfos of a layer.