From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/classarmnn_1_1_ref_stack_workload.xhtml | 250 ++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 21.02/classarmnn_1_1_ref_stack_workload.xhtml (limited to '21.02/classarmnn_1_1_ref_stack_workload.xhtml') diff --git a/21.02/classarmnn_1_1_ref_stack_workload.xhtml b/21.02/classarmnn_1_1_ref_stack_workload.xhtml new file mode 100644 index 0000000000..d0f90b7383 --- /dev/null +++ b/21.02/classarmnn_1_1_ref_stack_workload.xhtml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + +ArmNN: RefStackWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefStackWorkload Class Reference
+
+
+ +

#include <RefStackWorkload.hpp>

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

+Public Member Functions

 RefStackWorkload (const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual 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 14 of file RefStackWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefStackWorkload()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
RefStackWorkload (const StackQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+explicit
+
+ +

Definition at line 16 of file RefStackWorkload.cpp.

+
18  : BaseWorkload(descriptor, info)
19 {}
BaseWorkload(const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: Workload.hpp:32
+ +
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 21 of file RefStackWorkload.cpp.

+ +

References ARMNN_ASSERT, ARMNN_SCOPED_PROFILING_EVENT, armnn::CpuRef, TensorInfo::GetNumElements(), armnn::GetTensorInfo(), StackDescriptor::m_Axis, BaseWorkload< StackQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, StackDescriptor::m_NumInputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Stack.

+
22 {
23  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefStackWorkload_Execute");
24 
25  // Can perform a simple concatenation when axis == 0
27  {
28  float* output = GetOutputTensorData<float>(0, m_Data);
29  ARMNN_ASSERT(output != nullptr);
30 
31  unsigned int numInputs = m_Data.m_Parameters.m_NumInputs;
32  unsigned int inputLength = GetTensorInfo(m_Data.m_Inputs[0]).GetNumElements();
33 
34  for (unsigned int inputIdx=0; inputIdx<numInputs; ++inputIdx)
35  {
36  const float* input = GetInputTensorData<float>(inputIdx, m_Data);
37  for (unsigned int elmt=0; elmt<inputLength; ++elmt)
38  {
39  output[(inputIdx * inputLength) + elmt] = input[elmt];
40  }
41  }
42  return;
43  }
44 
45  std::vector<std::unique_ptr<Decoder<float>>> inputDecoders;
46  for (unsigned int i=0; i<m_Data.m_Inputs.size(); ++i)
47  {
48  inputDecoders.push_back(MakeDecoder<float>(GetTensorInfo(m_Data.m_Inputs[i]),
49  m_Data.m_Inputs[i]->Map()));
50  }
51  std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(GetTensorInfo(m_Data.m_Outputs[0]),
52  m_Data.m_Outputs[0]->Map());
53 
54  Stack(m_Data, inputDecoders, *outputEncoder);
55 }
uint32_t m_Axis
0-based axis along which to stack the input tensors.
+
CPU Execution: Reference C++ kernels.
+ +
const StackQueueDescriptor m_Data
Definition: Workload.hpp:46
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
+
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
uint32_t m_NumInputs
Number of input tensors.
+
std::vector< ITensorHandle * > m_Outputs
+
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:192
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1