ArmNN
 24.08
RefConvolution2dWorkload Class Reference

#include <RefConvolution2dWorkload.hpp>

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

Public Member Functions

 RefConvolution2dWorkload (const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void Execute () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
- Public Member Functions inherited from RefBaseWorkload< Convolution2dQueueDescriptor >
 RefBaseWorkload (const Convolution2dQueueDescriptor &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< Convolution2dQueueDescriptor >
 BaseWorkload (const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual const std::string & GetName () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
void PostAllocationConfigure () override
 
const Convolution2dQueueDescriptorGetData () 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< Convolution2dQueueDescriptor >
Convolution2dQueueDescriptor m_Data
 
const arm::pipe::ProfilingGuid m_Guid
 
const std::string m_Name
 

Detailed Description

Definition at line 16 of file RefConvolution2dWorkload.hpp.

Constructor & Destructor Documentation

◆ RefConvolution2dWorkload()

RefConvolution2dWorkload ( const Convolution2dQueueDescriptor descriptor,
const WorkloadInfo info 
)
explicit

Definition at line 15 of file RefConvolution2dWorkload.cpp.

17  : RefBaseWorkload<Convolution2dQueueDescriptor>(descriptor, info)
18  , m_InputShape(info.m_InputTensorInfos[0].GetShape())
19  , m_FilterShape(info.m_InputTensorInfos[1].GetShape())
20  , m_OutputShape(info.m_OutputTensorInfos[0].GetShape())
21 {
22  WorkloadInfo detailsInfo;
23  detailsInfo.m_InputTensorInfos = info.m_InputTensorInfos;
24  detailsInfo.m_OutputTensorInfos = info.m_OutputTensorInfos;
25 
26  // Report Profiling Details
27  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("RefConvolution2dWorkload_Construct",
28  descriptor.m_Parameters,
29  detailsInfo,
30  this->GetGuid());
31 }

References armnn::info.

Member Function Documentation

◆ Execute()

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 38 of file RefConvolution2dWorkload.cpp.

39 {
40  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
41  Execute(workingMemDescriptor->m_Inputs, workingMemDescriptor->m_Outputs);
42 }

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


The documentation for this class was generated from the following files:
armnn::RefConvolution2dWorkload::Execute
void Execute() const override
Definition: RefConvolution2dWorkload.cpp:33
armnn::BoostLogSeverityMapping::info
@ info
armnn::QueueDescriptor::m_Outputs
std::vector< ITensorHandle * > m_Outputs
Definition: WorkloadData.hpp:27
ARMNN_REPORT_PROFILING_WORKLOAD_DESC
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
armnn::BaseWorkload< Convolution2dQueueDescriptor >::m_Data
Convolution2dQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26