ArmNN
 24.08
RefDepthwiseConvolution2dWorkload Class Reference

#include <RefDepthwiseConvolution2dWorkload.hpp>

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

Public Member Functions

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

Detailed Description

Definition at line 15 of file RefDepthwiseConvolution2dWorkload.hpp.

Constructor & Destructor Documentation

◆ RefDepthwiseConvolution2dWorkload()

RefDepthwiseConvolution2dWorkload ( const DepthwiseConvolution2dQueueDescriptor descriptor,
const WorkloadInfo info 
)
explicit

Definition at line 18 of file RefDepthwiseConvolution2dWorkload.cpp.

20  : RefBaseWorkload<DepthwiseConvolution2dQueueDescriptor>(descriptor, info)
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("RefDepthwiseConvolution2dWorkload_Construct",
28  descriptor.m_Parameters,
29  detailsInfo,
30  this->GetGuid());
31 }

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, armnn::info, WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.

Member Function Documentation

◆ Execute()

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 38 of file RefDepthwiseConvolution2dWorkload.cpp.

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

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


The documentation for this class was generated from the following files:
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< DepthwiseConvolution2dQueueDescriptor >::m_Data
DepthwiseConvolution2dQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::RefDepthwiseConvolution2dWorkload::Execute
void Execute() const override
Definition: RefDepthwiseConvolution2dWorkload.cpp:33
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26