From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- 21.11/classarmnn_1_1_cl_stack_workload.xhtml | 247 +++++++++++++++++++++++++++ 1 file changed, 247 insertions(+) create mode 100644 21.11/classarmnn_1_1_cl_stack_workload.xhtml (limited to '21.11/classarmnn_1_1_cl_stack_workload.xhtml') diff --git a/21.11/classarmnn_1_1_cl_stack_workload.xhtml b/21.11/classarmnn_1_1_cl_stack_workload.xhtml new file mode 100644 index 0000000000..22a022d3d6 --- /dev/null +++ b/21.11/classarmnn_1_1_cl_stack_workload.xhtml @@ -0,0 +1,247 @@ + + + + + + + + + + + + + +ArmNN: ClStackWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClStackWorkload Class Reference
+
+
+ +

#include <ClStackWorkload.hpp>

+
+Inheritance diagram for ClStackWorkload:
+
+
+ + +BaseWorkload< StackQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClStackWorkload (const StackQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< StackQueueDescriptor >
 BaseWorkload (const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ExecuteAsync (WorkingMemDescriptor &workingMemDescriptor) override
 
void PostAllocationConfigure () override
 
const StackQueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + +

+Additional Inherited Members

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

Detailed Description

+
+

Definition at line 18 of file ClStackWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClStackWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ClStackWorkload (const StackQueueDescriptordescriptor,
const WorkloadInfoinfo,
const arm_compute::CLCompileContext & clCompileContext 
)
+
+ +

Definition at line 47 of file ClStackWorkload.cpp.

+ +

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, ARMNN_SCOPED_PROFILING_EVENT, TensorShape::GetNumDimensions(), StackDescriptor::m_Axis, BaseWorkload< StackQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, StackDescriptor::m_InputShape, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Undefined.

+
50 : BaseWorkload<StackQueueDescriptor>(descriptor, info)
51 {
52  // Report Profiling Details
53  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClStackWorkload_Construct",
54  descriptor.m_Parameters,
55  info,
56  this->GetGuid());
57 
58  std::vector<arm_compute::ICLTensor*> aclInputs;
59  for (auto input : m_Data.m_Inputs)
60  {
61  arm_compute::ICLTensor& aclInput = armnn::PolymorphicPointerDowncast<IClTensorHandle>(input)->GetTensor();
62  aclInputs.emplace_back(&aclInput);
63  }
64  arm_compute::ICLTensor& output = armnn::PolymorphicPointerDowncast<IClTensorHandle>(
65  m_Data.m_Outputs[0])->GetTensor();
66 
67  m_Layer.reset(new arm_compute::CLStackLayer());
68  int aclAxis = CalcAxis(descriptor.m_Parameters.m_Axis, descriptor.m_Parameters.m_InputShape.GetNumDimensions());
69  {
70  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClStackWorkload_configure");
71  m_Layer->configure(clCompileContext, aclInputs, aclAxis, &output);
72  }
73 }
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+ + +
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 75 of file ClStackWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_CL_GUID, and BaseWorkload< StackQueueDescriptor >::GetGuid().

+
76 {
77  if (m_Layer)
78  {
79  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClStackWorkload_Execute", this->GetGuid());
80  m_Layer->run();
81  }
82 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1