ArmNN
 24.02
RefFullyConnectedWorkload Class Reference

#include <RefFullyConnectedWorkload.hpp>

Inheritance diagram for RefFullyConnectedWorkload:
[legend]
Collaboration diagram for RefFullyConnectedWorkload:
[legend]

Public Member Functions

 RefFullyConnectedWorkload (const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void Execute () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
- Public Member Functions inherited from RefBaseWorkload< FullyConnectedQueueDescriptor >
 RefBaseWorkload (const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual bool SupportsTensorHandleReplacement () const override
 
void ReplaceInputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
void ReplaceOutputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
- Public Member Functions inherited from BaseWorkload< FullyConnectedQueueDescriptor >
 BaseWorkload (const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual const std::string & GetName () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
void PostAllocationConfigure () override
 
const FullyConnectedQueueDescriptorGetData () const
 
arm::pipe::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual arm::pipe::ProfilingGuid GetGuid () const =0
 
virtual bool SupportsTensorHandleReplacement () const =0
 
virtual const std::string & GetName () const =0
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()
 

Additional Inherited Members

- Protected Attributes inherited from BaseWorkload< FullyConnectedQueueDescriptor >
FullyConnectedQueueDescriptor m_Data
 
const arm::pipe::ProfilingGuid m_Guid
 
const std::string m_Name
 

Detailed Description

Definition at line 18 of file RefFullyConnectedWorkload.hpp.

Constructor & Destructor Documentation

◆ RefFullyConnectedWorkload()

RefFullyConnectedWorkload ( const FullyConnectedQueueDescriptor descriptor,
const WorkloadInfo info 
)
explicit

Definition at line 27 of file RefFullyConnectedWorkload.cpp.

29  : RefBaseWorkload<FullyConnectedQueueDescriptor>(descriptor, info)
30  , m_InputShape(info.m_InputTensorInfos[0].GetShape())
31  , m_WeightShape(info.m_InputTensorInfos[1].GetShape())
32  , m_OutputShape(info.m_OutputTensorInfos[0].GetShape())
33  , m_NumActivations(GetNumActivations(info.m_InputTensorInfos[0]))
34 {
35 }

References armnn::info.

Member Function Documentation

◆ Execute()

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 42 of file RefFullyConnectedWorkload.cpp.

43 {
44  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
45  Execute(workingMemDescriptor->m_Inputs, workingMemDescriptor->m_Outputs);
46 }

References RefFullyConnectedWorkload::Execute(), ExecutionData::m_Data, WorkingMemDescriptor::m_Inputs, and WorkingMemDescriptor::m_Outputs.


The documentation for this class was generated from the following files:
armnn::RefFullyConnectedWorkload::Execute
void Execute() const override
Definition: RefFullyConnectedWorkload.cpp:37
armnn::BoostLogSeverityMapping::info
@ info
armnn::GetNumActivations
unsigned int GetNumActivations(const TensorInfo &inputInfo)
Definition: RefFullyConnectedWorkload.cpp:16
armnn::QueueDescriptor::m_Outputs
std::vector< ITensorHandle * > m_Outputs
Definition: WorkloadData.hpp:27
armnn::BaseWorkload< FullyConnectedQueueDescriptor >::m_Data
FullyConnectedQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26