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_ref_debug_workload.xhtml | 325 ++++++++++++++++++++++++++ 1 file changed, 325 insertions(+) create mode 100644 20.02/classarmnn_1_1_ref_debug_workload.xhtml (limited to '20.02/classarmnn_1_1_ref_debug_workload.xhtml') diff --git a/20.02/classarmnn_1_1_ref_debug_workload.xhtml b/20.02/classarmnn_1_1_ref_debug_workload.xhtml new file mode 100644 index 0000000000..e37fb47c0b --- /dev/null +++ b/20.02/classarmnn_1_1_ref_debug_workload.xhtml @@ -0,0 +1,325 @@ + + + + + + + + + + + + + +ArmNN: RefDebugWorkload< DataType > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefDebugWorkload< DataType > Class Template Reference
+
+
+ +

#include <RefDebugWorkload.hpp>

+
+Inheritance diagram for RefDebugWorkload< DataType >:
+
+
+ + +TypedWorkload< DebugQueueDescriptor, DataType > +BaseWorkload< DebugQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 RefDebugWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void Execute () const override
 
void RegisterDebugCallback (const DebugCallbackFunction &func) override
 
- Public Member Functions inherited from TypedWorkload< DebugQueueDescriptor, DataType >
 TypedWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
- Public Member Functions inherited from BaseWorkload< DebugQueueDescriptor >
 BaseWorkload (const DebugQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const DebugQueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
+ + + +

+Static Public Member Functions

static const std::string & GetName ()
 
+ + + + + + +

+Additional Inherited Members

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

Detailed Description

+

template<armnn::DataType DataType>
+class armnn::RefDebugWorkload< DataType >

+ + +

Definition at line 16 of file RefDebugWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefDebugWorkload()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
RefDebugWorkload (const DebugQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+inline
+
+ +

Definition at line 19 of file RefDebugWorkload.hpp.

+
20  : TypedWorkload<DebugQueueDescriptor, DataType>(descriptor, info)
21  , m_Callback(nullptr) {}
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 18 of file RefDebugWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT, armnn::CpuRef, armnn::Debug(), TensorInfo::GetNumElements(), and armnn::GetTensorInfo().

+ +

Referenced by RefDebugWorkload< DataType >::GetName().

+
19 {
20  using T = ResolveType<DataType>;
21 
23 
24  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
25 
26  const T* inputData = GetInputTensorData<T>(0, m_Data);
27  T* outputData = GetOutputTensorData<T>(0, m_Data);
28 
29  if (m_Callback)
30  {
31  m_Callback(m_Data.m_Guid, m_Data.m_SlotIndex, m_Data.m_Inputs[0]);
32  }
33  else
34  {
35  Debug(inputInfo, inputData, m_Data.m_Guid, m_Data.m_LayerName, m_Data.m_SlotIndex);
36  }
37 
38  std::memcpy(outputData, inputData, inputInfo.GetNumElements()*sizeof(T));
39 }
CPU Execution: Reference C++ kernels.
+ +
static const std::string & GetName()
+
const DebugQueueDescriptor m_Data
Definition: Workload.hpp:46
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
+ + +
std::vector< ITensorHandle * > m_Inputs
+ +
+
+
+ +

◆ GetName()

+ +
+
+ + + + + +
+ + + + + + + +
static const std::string& GetName ()
+
+inlinestatic
+
+ +

Definition at line 23 of file RefDebugWorkload.hpp.

+ +

References RefDebugWorkload< DataType >::Execute(), armnn::GetDataTypeName(), and RefDebugWorkload< DataType >::RegisterDebugCallback().

+
24  {
25  static const std::string name = std::string("RefDebug") + GetDataTypeName(DataType) + "Workload";
26  return name;
27  }
constexpr const char * GetDataTypeName(DataType dataType)
Definition: TypesUtils.hpp:168
+
DataType
Definition: Types.hpp:32
+
+
+
+ +

◆ RegisterDebugCallback()

+ +
+
+ + + + + +
+ + + + + + + + +
void RegisterDebugCallback (const DebugCallbackFunctionfunc)
+
+overridevirtual
+
+ +

Reimplemented from IWorkload.

+ +

Definition at line 42 of file RefDebugWorkload.cpp.

+ +

Referenced by RefDebugWorkload< DataType >::GetName().

+
43 {
44  m_Callback = func;
45 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1