From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1_cl_stack_workload.xhtml | 235 +++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 20.02/classarmnn_1_1_cl_stack_workload.xhtml (limited to '20.02/classarmnn_1_1_cl_stack_workload.xhtml') diff --git a/20.02/classarmnn_1_1_cl_stack_workload.xhtml b/20.02/classarmnn_1_1_cl_stack_workload.xhtml new file mode 100644 index 0000000000..a666878737 --- /dev/null +++ b/20.02/classarmnn_1_1_cl_stack_workload.xhtml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + +ArmNN: ClStackWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClStackWorkload Class Reference
+
+
+ +

#include <ClStackWorkload.hpp>

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

+Public Member Functions

 ClStackWorkload (const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< StackQueueDescriptor >
 BaseWorkload (const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
 
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 >
const 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 
)
+
+ +

Definition at line 48 of file ClStackWorkload.cpp.

+ +

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

+
49 : BaseWorkload<StackQueueDescriptor>(descriptor, info)
50 {
51  std::vector<arm_compute::ICLTensor*> aclInputs;
52  for (auto input : m_Data.m_Inputs)
53  {
54  arm_compute::ICLTensor& aclInput = boost::polymorphic_pointer_downcast<IClTensorHandle>(input)->GetTensor();
55  aclInputs.emplace_back(&aclInput);
56  }
57  arm_compute::ICLTensor& output = boost::polymorphic_pointer_downcast<IClTensorHandle>(
58  m_Data.m_Outputs[0])->GetTensor();
59 
60  m_Layer.reset(new arm_compute::CLStackLayer());
61  int aclAxis = CalcAxis(descriptor.m_Parameters.m_Axis, descriptor.m_Parameters.m_InputShape.GetNumDimensions());
62  m_Layer->configure(aclInputs, aclAxis, &output);
63 }
const StackQueueDescriptor m_Data
Definition: Workload.hpp:46
+
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 65 of file ClStackWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_CL.

+
66 {
67  if (m_Layer)
68  {
69  ARMNN_SCOPED_PROFILING_EVENT_CL("ClStackWorkload_Execute");
70  m_Layer->run();
71  }
72 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1