ArmNN
 24.08
RefBatchNormalizationWorkload Class Reference

#include <RefBatchNormalizationWorkload.hpp>

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

Public Member Functions

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

Detailed Description

Definition at line 14 of file RefBatchNormalizationWorkload.hpp.

Constructor & Destructor Documentation

◆ RefBatchNormalizationWorkload()

RefBatchNormalizationWorkload ( const BatchNormalizationQueueDescriptor descriptor,
const WorkloadInfo info 
)
explicit

Definition at line 16 of file RefBatchNormalizationWorkload.cpp.

18  : RefBaseWorkload(descriptor, info)
19  , m_Mean (std::make_unique<ScopedTensorHandle>(*(descriptor.m_Mean)))
20  , m_Variance(std::make_unique<ScopedTensorHandle>(*(descriptor.m_Variance)))
21  , m_Beta (std::make_unique<ScopedTensorHandle>(*(descriptor.m_Beta)))
22  , m_Gamma (std::make_unique<ScopedTensorHandle>(*(descriptor.m_Gamma)))
23 {}

References armnn::info.

Member Function Documentation

◆ Execute()

◆ ExecuteAsync()

void ExecuteAsync ( ExecutionData executionData)
overridevirtual

Implements IWorkload.

Definition at line 30 of file RefBatchNormalizationWorkload.cpp.

31 {
32  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
33  Execute(workingMemDescriptor->m_Inputs, workingMemDescriptor->m_Outputs);
34 }

References RefBatchNormalizationWorkload::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< BatchNormalizationQueueDescriptor >::m_Data
BatchNormalizationQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::RefBaseWorkload< BatchNormalizationQueueDescriptor >::RefBaseWorkload
RefBaseWorkload(const BatchNormalizationQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: RefBaseWorkload.hpp:16
armnn::RefBatchNormalizationWorkload::Execute
void Execute() const override
Definition: RefBatchNormalizationWorkload.cpp:25
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26