ArmNN
 24.02
RefFullyConnectedWorkload.hpp
Go to the documentation of this file.
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"
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 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
armnn::FullyConnectedQueueDescriptor
Definition: WorkloadData.hpp:180
WorkloadData.hpp
BaseIterator.hpp
armnn::RefFullyConnectedWorkload::Execute
void Execute() const override
Definition: RefFullyConnectedWorkload.cpp:37
armnn::TensorShape
Definition: Tensor.hpp:20
armnn::RefFullyConnectedWorkload
Definition: RefFullyConnectedWorkload.hpp:18
armnn::RefFullyConnectedWorkload::RefFullyConnectedWorkload
RefFullyConnectedWorkload(const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: RefFullyConnectedWorkload.cpp:27
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::RefFullyConnectedWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition: RefFullyConnectedWorkload.cpp:42
armnn::BoostLogSeverityMapping::info
@ info
Decoders.hpp
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
RefBaseWorkload.hpp
Encoders.hpp
armnn::RefBaseWorkload
Definition: RefBaseWorkload.hpp:13
armnn::experimental::ExecutionData
Definition: ExecutionData.hpp:14