ArmNN
 24.02
RefElementwiseWorkload< Functor, ParentDescriptor, DebugString > Class Template Reference

#include <RefElementwiseWorkload.hpp>

Inheritance diagram for RefElementwiseWorkload< Functor, ParentDescriptor, DebugString >:
[legend]
Collaboration diagram for RefElementwiseWorkload< Functor, ParentDescriptor, DebugString >:
[legend]

Public Member Functions

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

Detailed Description

template<typename Functor, typename ParentDescriptor, typename armnn::StringMapping::Id DebugString>
class armnn::RefElementwiseWorkload< Functor, ParentDescriptor, DebugString >

Definition at line 21 of file RefElementwiseWorkload.hpp.

Constructor & Destructor Documentation

◆ RefElementwiseWorkload()

RefElementwiseWorkload ( const ParentDescriptor &  descriptor,
const WorkloadInfo info 
)

Definition at line 21 of file RefElementwiseWorkload.cpp.

24  : RefBaseWorkload<ParentDescriptor>(desc, info)
25 {
26 }

References armnn::info.

Member Function Documentation

◆ Execute()

void Execute
overridevirtual

Implements IWorkload.

Definition at line 29 of file RefElementwiseWorkload.cpp.

30 {
31  Execute(m_Data.m_Inputs, m_Data.m_Outputs);
32 }

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 35 of file RefElementwiseWorkload.cpp.

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

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


The documentation for this class was generated from the following files:
armnn::RefElementwiseWorkload::Execute
void Execute() const override
Definition: RefElementwiseWorkload.cpp:29
armnn::BaseWorkload< ParentDescriptor >::m_Data
ParentDescriptor m_Data
Definition: Workload.hpp:89