ArmNN
 24.02
RefReduceWorkload Class Reference

#include <RefReduceWorkload.hpp>

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

Public Member Functions

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

Detailed Description

Definition at line 15 of file RefReduceWorkload.hpp.

Constructor & Destructor Documentation

◆ RefReduceWorkload()

RefReduceWorkload ( const ReduceQueueDescriptor descriptor,
const WorkloadInfo info 
)
explicit

Definition at line 17 of file RefReduceWorkload.cpp.

20  : RefBaseWorkload<ReduceQueueDescriptor>(descriptor, info) {}

References armnn::info.

Member Function Documentation

◆ Execute()

void Execute ( ) const
overridevirtual

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 27 of file RefReduceWorkload.cpp.

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

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


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