ArmNN
 24.08
RefConstantWorkload Class Reference

#include <RefConstantWorkload.hpp>

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

Public Member Functions

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

Detailed Description

Definition at line 17 of file RefConstantWorkload.hpp.

Constructor & Destructor Documentation

◆ RefConstantWorkload()

RefConstantWorkload ( const ConstantQueueDescriptor descriptor,
const WorkloadInfo info 
)

Definition at line 19 of file RefConstantWorkload.cpp.

21  : RefBaseWorkload<ConstantQueueDescriptor>(descriptor, info) {}

References armnn::info.

Member Function Documentation

◆ Execute()

void Execute ( ) const
overridevirtual

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 28 of file RefConstantWorkload.cpp.

29 {
30  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
31  Execute(workingMemDescriptor->m_Outputs);
32 }

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


The documentation for this class was generated from the following files:
armnn::RefConstantWorkload::Execute
void Execute() const override
Definition: RefConstantWorkload.cpp:23
armnn::QueueDescriptor::m_Outputs
std::vector< ITensorHandle * > m_Outputs
Definition: WorkloadData.hpp:27
armnn::BaseWorkload< ConstantQueueDescriptor >::m_Data
ConstantQueueDescriptor m_Data
Definition: Workload.hpp:89