From a983e4699082a0b1ef685bab7354f2ad9cd37a44 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Wed, 20 May 2020 16:12:19 +0100 Subject: Updating Doxygen documentation for 20.05 release. Change-Id: I4d624343ed5fd6ae269c3d53532903084508fd14 Signed-off-by: Colm Donelan --- 20.05/classarmnn_1_1_typed_workload.xhtml | 220 ++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 20.05/classarmnn_1_1_typed_workload.xhtml (limited to '20.05/classarmnn_1_1_typed_workload.xhtml') diff --git a/20.05/classarmnn_1_1_typed_workload.xhtml b/20.05/classarmnn_1_1_typed_workload.xhtml new file mode 100644 index 0000000000..16274817f0 --- /dev/null +++ b/20.05/classarmnn_1_1_typed_workload.xhtml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + +ArmNN: TypedWorkload< QueueDescriptor, DataTypes > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TypedWorkload< QueueDescriptor, DataTypes > Class Template Reference
+
+
+ +

#include <Workload.hpp>

+
+Inheritance diagram for TypedWorkload< QueueDescriptor, DataTypes >:
+
+
+ + +BaseWorkload< QueueDescriptor > +IWorkload +ClBatchNormalizationFloatWorkload +ClDivisionFloatWorkload +ClFloorFloatWorkload +ClL2NormalizationFloatWorkload +ClLstmFloatWorkload +ClNormalizationFloatWorkload +NeonFloorFloatWorkload +NeonL2NormalizationFloatWorkload +NeonLstmFloatWorkload +NeonNormalizationFloatWorkload +RefFakeQuantizationFloat32Workload + +
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 TypedWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
- Public Member Functions inherited from BaseWorkload< QueueDescriptor >
 BaseWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const QueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void Execute () const =0
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + +

+Additional Inherited Members

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

Detailed Description

+

template<typename QueueDescriptor, armnn::DataType... DataTypes>
+class armnn::TypedWorkload< QueueDescriptor, DataTypes >

+ + +

Definition at line 52 of file Workload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TypedWorkload()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
TypedWorkload (const QueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+inline
+
+ +

Definition at line 56 of file Workload.hpp.

+
57  : BaseWorkload<QueueDescriptor>(descriptor, info)
58  {
59  std::vector<armnn::DataType> dataTypes = {DataTypes...};
60  armnn::DataType expectedInputType;
61 
62  if (!info.m_InputTensorInfos.empty())
63  {
64  expectedInputType = info.m_InputTensorInfos.front().GetDataType();
65 
66  if (std::find(dataTypes.begin(), dataTypes.end(), expectedInputType) == dataTypes.end())
67  {
68  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
69  }
70  ARMNN_ASSERT_MSG(std::all_of(std::next(info.m_InputTensorInfos.begin()),
71  info.m_InputTensorInfos.end(),
72  [&](auto it){
73  return it.GetDataType() == expectedInputType;
74  }),
75  "Trying to create workload with incorrect type");
76  }
77  armnn::DataType expectedOutputType;
78 
79  if (!info.m_OutputTensorInfos.empty())
80  {
81  expectedOutputType = info.m_OutputTensorInfos.front().GetDataType();
82 
83  if (!info.m_InputTensorInfos.empty())
84  {
85  if (expectedOutputType != expectedInputType)
86  {
87  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
88  }
89  }
90  else if (std::find(dataTypes.begin(), dataTypes.end(), expectedOutputType) == dataTypes.end())
91  {
92  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
93  }
94  ARMNN_ASSERT_MSG(std::all_of(std::next(info.m_OutputTensorInfos.begin()),
95  info.m_OutputTensorInfos.end(),
96  [&](auto it){
97  return it.GetDataType() == expectedOutputType;
98  }),
99  "Trying to create workload with incorrect type");
100  }
101  }
DataType
Definition: Types.hpp:32
+
#define ARMNN_ASSERT_MSG(COND, MSG)
Definition: Assert.hpp:15
+ +
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1