From de36e4a9c299028e792c3a5bd99ad0816d806077 Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Fri, 13 Mar 2020 16:26:19 +0000 Subject: IVGCVSW-3726 Upload ArmNN Doxygen files * Upload current ArmNN Doxygen files Signed-off-by: Ryan OShea Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285 --- .../classarmnn_1_1_cl_concat_workload.xhtml | 235 +++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 Documentation/classarmnn_1_1_cl_concat_workload.xhtml (limited to 'Documentation/classarmnn_1_1_cl_concat_workload.xhtml') diff --git a/Documentation/classarmnn_1_1_cl_concat_workload.xhtml b/Documentation/classarmnn_1_1_cl_concat_workload.xhtml new file mode 100644 index 0000000000..b90edbc3af --- /dev/null +++ b/Documentation/classarmnn_1_1_cl_concat_workload.xhtml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + +ArmNN: ClConcatWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClConcatWorkload Class Reference
+
+
+ +

#include <ClConcatWorkload.hpp>

+
+Inheritance diagram for ClConcatWorkload:
+
+
+ + +BaseWorkload< ConcatQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClConcatWorkload (const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< ConcatQueueDescriptor >
 BaseWorkload (const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const ConcatQueueDescriptorGetData () 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< ConcatQueueDescriptor >
const ConcatQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 20 of file ClConcatWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClConcatWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
ClConcatWorkload (const ConcatQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 50 of file ClConcatWorkload.cpp.

+ +

References BaseWorkload< ConcatQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.

+
51 : BaseWorkload<ConcatQueueDescriptor>(descriptor, info)
52 {
53  bool allInputsAreSubtensors = true;
54 
55  // Check that all inputs are sub-tensors
56  for (auto input : descriptor.m_Inputs)
57  {
58  if (!input->GetParent())
59  {
60  // Non sub-tensor input found so we need to execute the concat function
61  allInputsAreSubtensors = false;
62  break;
63  }
64  }
65 
66  if (allInputsAreSubtensors)
67  {
68  // Can skip configuring the concat function since it's not executed
69  return;
70  }
71 
72  std::vector<arm_compute::ICLTensor *> aclInputs;
73  for (auto input : m_Data.m_Inputs)
74  {
75  arm_compute::ICLTensor& aclInput = boost::polymorphic_pointer_downcast<IClTensorHandle>(input)->GetTensor();
76  aclInputs.emplace_back(&aclInput);
77  }
78  arm_compute::ICLTensor& output = boost::polymorphic_pointer_downcast<IClTensorHandle>(
79  m_Data.m_Outputs[0])->GetTensor();
80 
81  // Create the layer function
82  auto layer = std::make_unique<arm_compute::CLConcatenateLayer>();
83 
84  // Configure input and output tensors
85  size_t aclAxis = CalcAxis(descriptor.m_Parameters);
86  layer->configure(aclInputs, &output, aclAxis);
87 
88  // Prepare
89  layer->prepare();
90  m_Layer = std::move(layer);
91 }
const ConcatQueueDescriptor 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 93 of file ClConcatWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_CL.

+
94 {
95  if (m_Layer)
96  {
97  ARMNN_SCOPED_PROFILING_EVENT_CL("ClConcatWorkload_Execute");
98  m_Layer->run();
99  }
100 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1