ArmNN
 24.02
RefDebugWorkload< DataType > Class Template Reference

#include <RefDebugWorkload.hpp>

Inheritance diagram for RefDebugWorkload< DataType >:
[legend]
Collaboration diagram for RefDebugWorkload< DataType >:
[legend]

Public Member Functions

 RefDebugWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual const std::string & GetName () const override
 
void Execute () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
void RegisterDebugCallback (const DebugCallbackFunction &func) override
 
- Public Member Functions inherited from TypedWorkload< DebugQueueDescriptor, DataType >
 TypedWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
- Public Member Functions inherited from BaseWorkload< DebugQueueDescriptor >
 BaseWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual const std::string & GetName () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
void PostAllocationConfigure () override
 
const DebugQueueDescriptorGetData () const
 
arm::pipe::ProfilingGuid GetGuid () const final
 
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 IWorkload
virtual ~IWorkload ()
 
virtual arm::pipe::ProfilingGuid GetGuid () const =0
 
virtual bool SupportsTensorHandleReplacement () const =0
 
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()
 

Additional Inherited Members

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

Detailed Description

template<armnn::DataType DataType>
class armnn::RefDebugWorkload< DataType >

Definition at line 16 of file RefDebugWorkload.hpp.

Constructor & Destructor Documentation

◆ RefDebugWorkload()

RefDebugWorkload ( const DebugQueueDescriptor descriptor,
const WorkloadInfo info 
)
inline

Definition at line 19 of file RefDebugWorkload.hpp.

20  : TypedWorkload<DebugQueueDescriptor, DataType>(descriptor, info)
21  , m_Callback(nullptr) {}

References armnn::info.

Member Function Documentation

◆ Execute()

void Execute
overridevirtual

Implements IWorkload.

Definition at line 18 of file RefDebugWorkload.cpp.

19 {
21 }

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 24 of file RefDebugWorkload.cpp.

25 {
26  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
27  Execute(workingMemDescriptor->m_Inputs);
28 }

References ExecutionData::m_Data, and WorkingMemDescriptor::m_Inputs.

◆ GetName()

virtual const std::string& GetName ( ) const
inlineoverridevirtual

Implements IWorkload.

Definition at line 23 of file RefDebugWorkload.hpp.

24  {
25  static const std::string name = std::string("RefDebug") + GetDataTypeName(DataType) + "Workload";
26  return name;
27  }

References armnn::GetDataTypeName().

◆ RegisterDebugCallback()

void RegisterDebugCallback ( const DebugCallbackFunction func)
overridevirtual

Reimplemented from IWorkload.

Definition at line 55 of file RefDebugWorkload.cpp.

56 {
57  m_Callback = func;
58 }

The documentation for this class was generated from the following files:
armnn::GetDataTypeName
constexpr const char * GetDataTypeName(DataType dataType)
Definition: TypesUtils.hpp:233
armnn::DataType
DataType
Definition: Types.hpp:48
armnn::RefDebugWorkload::Execute
void Execute() const override
Definition: RefDebugWorkload.cpp:18
armnn::BaseWorkload< DebugQueueDescriptor >::m_Data
DebugQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26