From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- ...nn_1_1_cl_l2_normalization_float_workload.xhtml | 352 +++++++++++++++++++++ 1 file changed, 352 insertions(+) create mode 100644 22.02/classarmnn_1_1_cl_l2_normalization_float_workload.xhtml (limited to '22.02/classarmnn_1_1_cl_l2_normalization_float_workload.xhtml') diff --git a/22.02/classarmnn_1_1_cl_l2_normalization_float_workload.xhtml b/22.02/classarmnn_1_1_cl_l2_normalization_float_workload.xhtml new file mode 100644 index 0000000000..f049acd283 --- /dev/null +++ b/22.02/classarmnn_1_1_cl_l2_normalization_float_workload.xhtml @@ -0,0 +1,352 @@ + + + + + + + + + + + + + +ArmNN: ClL2NormalizationFloatWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClL2NormalizationFloatWorkload Class Reference
+
+
+ +

#include <ClL2NormalizationFloatWorkload.hpp>

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

+Public Member Functions

 ClL2NormalizationFloatWorkload (const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
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 (WorkingMemDescriptor &workingMemDescriptor) override
 
void PostAllocationConfigure () override
 
const QueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
virtual bool SupportsTensorHandleReplacement () const override
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + +

+Additional Inherited Members

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

Detailed Description

+
+

Definition at line 19 of file ClL2NormalizationFloatWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClL2NormalizationFloatWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ClL2NormalizationFloatWorkload (const L2NormalizationQueueDescriptordescriptor,
const WorkloadInfoinfo,
const arm_compute::CLCompileContext & clCompileContext 
)
+
+ +

Definition at line 29 of file ClL2NormalizationFloatWorkload.cpp.

+ +

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

+
32  : FloatWorkload<L2NormalizationQueueDescriptor>(descriptor, info)
33 {
34  // Report Profiling Details
35  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClL2NormalizationFloatWorkload_Construct",
36  descriptor.m_Parameters,
37  info,
38  this->GetGuid());
39 
40  m_Data.ValidateInputsOutputs("ClL2NormalizationFloatWorkload", 1, 1);
41 
42  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
43  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
44 
45  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
46  input.info()->set_data_layout(aclDataLayout);
47  output.info()->set_data_layout(aclDataLayout);
48 
49  int axis = (m_Data.m_Parameters.m_DataLayout == DataLayout::NCHW) ? 2 : 0;
50 
51  {
52  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClL2NormalizationFloatWorkload_configure");
53  m_Layer.configure(clCompileContext, &input, &output, axis, m_Data.m_Parameters.m_Eps);
54  }
55 }
DataLayout
Definition: Types.hpp:49
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+
QueueDescriptor m_Data
Definition: Workload.hpp:77
+ +
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 ClL2NormalizationFloatWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_CL_GUID, CHECK_LOCATION, BaseWorkload< QueueDescriptor >::GetGuid(), and armnn::RunClFunction().

+
58 {
59  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClL2NormalizationFloatWorkload_Execute", this->GetGuid());
60  RunClFunction(m_Layer, CHECK_LOCATION());
61 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:209
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+
+
+
+ +

◆ ReplaceInputTensorHandle()

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

Reimplemented from BaseWorkload< QueueDescriptor >.

+ +

Definition at line 63 of file ClL2NormalizationFloatWorkload.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:77
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+ +

◆ ReplaceOutputTensorHandle()

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

Reimplemented from BaseWorkload< QueueDescriptor >.

+ +

Definition at line 80 of file ClL2NormalizationFloatWorkload.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:77
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1