From 8d2ca734165a068478df7cffa46185680b05cd20 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 24 Feb 2023 10:28:19 +0000 Subject: Update Doxygen docu for 23.02 Signed-off-by: Nikhil Raj Change-Id: Ie6c19a27d50fefab2796b2b5875374e81f5bf971 --- ..._1_1_neon_l2_normalization_float_workload.xhtml | 350 +++++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 23.02/classarmnn_1_1_neon_l2_normalization_float_workload.xhtml (limited to '23.02/classarmnn_1_1_neon_l2_normalization_float_workload.xhtml') diff --git a/23.02/classarmnn_1_1_neon_l2_normalization_float_workload.xhtml b/23.02/classarmnn_1_1_neon_l2_normalization_float_workload.xhtml new file mode 100644 index 0000000000..7bc0822eee --- /dev/null +++ b/23.02/classarmnn_1_1_neon_l2_normalization_float_workload.xhtml @@ -0,0 +1,350 @@ + + + + + + + + + + + + + +ArmNN: NeonL2NormalizationFloatWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
NeonL2NormalizationFloatWorkload Class Reference
+
+
+ +

#include <NeonL2NormalizationFloatWorkload.hpp>

+
+Inheritance diagram for NeonL2NormalizationFloatWorkload:
+
+
+ + +TypedWorkload< QueueDescriptor, DataTypes > +BaseWorkload< QueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 NeonL2NormalizationFloatWorkload (const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
 
virtual void Execute () const override
 
void ReplaceInputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
void ReplaceOutputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
- Public Member Functions inherited from TypedWorkload< QueueDescriptor, DataTypes >
 TypedWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
- Public Member Functions inherited from BaseWorkload< QueueDescriptor >
 BaseWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ExecuteAsync (ExecutionData &executionData) override
 
void PostAllocationConfigure () override
 
const QueueDescriptorGetData () const
 
arm::pipe::ProfilingGuid GetGuid () const final
 
virtual bool SupportsTensorHandleReplacement () const override
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()
 
+ + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from BaseWorkload< QueueDescriptor >
QueueDescriptor m_Data
 
const arm::pipe::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 23 of file NeonL2NormalizationFloatWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ NeonL2NormalizationFloatWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
NeonL2NormalizationFloatWorkload (const L2NormalizationQueueDescriptordescriptor,
const WorkloadInfoinfo,
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & memoryManager 
)
+
+ +

Definition at line 31 of file NeonL2NormalizationFloatWorkload.cpp.

+ +

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, BaseWorkload< QueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and QueueDescriptor::ValidateInputsOutputs().

+
33  : FloatWorkload<L2NormalizationQueueDescriptor>(descriptor, info)
34 {
35  // Report Profiling Details
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("NeonL2NormalizationFloatWorkload_Construct",
37  descriptor.m_Parameters,
38  info,
39  this->GetGuid());
40 
41  m_Data.ValidateInputsOutputs("NeonL2NormalizationFloatWorkload", 1, 1);
42 
43  arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
44  arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
45 
46  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
47  input.info()->set_data_layout(aclDataLayout);
48  output.info()->set_data_layout(aclDataLayout);
49 
50  int axis = (m_Data.m_Parameters.m_DataLayout == DataLayout::NCHW) ? 2 : 0;
51 
52  auto layer = std::make_unique<arm_compute::NEL2NormalizeLayer>(memoryManager);
53  layer->configure(&input, &output, axis, m_Data.m_Parameters.m_Eps);
54  m_Layer.reset(layer.release());
55 }
DataLayout
Definition: Types.hpp:62
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
QueueDescriptor m_Data
Definition: Workload.hpp:83
+
std::vector< ITensorHandle * > m_Outputs
+ +
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+
std::vector< ITensorHandle * > m_Inputs
+ +
+
+
+

Member Function Documentation

+ +

◆ Execute()

+ +
+
+ + + + + +
+ + + + + + + +
void Execute () const
+
+overridevirtual
+
+ +

Implements IWorkload.

+ +

Definition at line 57 of file NeonL2NormalizationFloatWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID, and BaseWorkload< QueueDescriptor >::GetGuid().

+
58 {
59  ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID("NeonL2NormalizationFloatWorkload_Execute", this->GetGuid());
60  m_Layer->run();
61 }
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:61
+
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID(name, guid)
+
+
+
+ +

◆ ReplaceInputTensorHandle()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void ReplaceInputTensorHandle (ITensorHandletensorHandle,
unsigned int slot 
)
+
+overridevirtual
+
+ +

Reimplemented from BaseWorkload< QueueDescriptor >.

+ +

Definition at line 63 of file NeonL2NormalizationFloatWorkload.cpp.

+ +

References BaseWorkload< QueueDescriptor >::m_Data, and QueueDescriptor::m_Inputs.

+
64 {
65  ITensorHandle* backupHandle = this->m_Data.m_Inputs[slot];
66  this->m_Data.m_Inputs[slot] = tensorHandle;
67  try
68  {
69  Reconfigure();
70  }
72  {
73  // Cannot reconfigure, revert the slot back and throw the exception.
74  this->m_Data.m_Inputs[slot] = backupHandle;
75  throw e;
76  }
77 }
+
QueueDescriptor m_Data
Definition: Workload.hpp:83
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+ +

◆ ReplaceOutputTensorHandle()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void ReplaceOutputTensorHandle (ITensorHandletensorHandle,
unsigned int slot 
)
+
+overridevirtual
+
+ +

Reimplemented from BaseWorkload< QueueDescriptor >.

+ +

Definition at line 80 of file NeonL2NormalizationFloatWorkload.cpp.

+ +

References BaseWorkload< QueueDescriptor >::m_Data, and QueueDescriptor::m_Inputs.

+
81 {
82  ITensorHandle* backupHandle = this->m_Data.m_Inputs[slot];
83  this->m_Data.m_Inputs[slot] = tensorHandle;
84  try
85  {
86  Reconfigure();
87  }
89  {
90  // Cannot reconfigure, revert the slot back and throw the exception.
91  this->m_Data.m_Inputs[slot] = backupHandle;
92  throw e;
93  }
94 }
+
QueueDescriptor m_Data
Definition: Workload.hpp:83
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1