From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- 21.08/classarmnn_1_1_typed_workload.xhtml | 221 ++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 21.08/classarmnn_1_1_typed_workload.xhtml (limited to '21.08/classarmnn_1_1_typed_workload.xhtml') diff --git a/21.08/classarmnn_1_1_typed_workload.xhtml b/21.08/classarmnn_1_1_typed_workload.xhtml new file mode 100644 index 0000000000..57b6fcb510 --- /dev/null +++ b/21.08/classarmnn_1_1_typed_workload.xhtml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + +ArmNN: TypedWorkload< QueueDescriptor, DataTypes > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TypedWorkload< QueueDescriptor, DataTypes > Class Template Reference
+
+
+ +

#include <Workload.hpp>

+
+Inheritance diagram for TypedWorkload< QueueDescriptor, DataTypes >:
+
+
+ + +BaseWorkload< QueueDescriptor > +IWorkload +ClBatchNormalizationFloatWorkload +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 ExecuteAsync (WorkingMemDescriptor &workingMemDescriptor) override
 
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 >
QueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+

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

+ + +

Definition at line 67 of file Workload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TypedWorkload()

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

Definition at line 71 of file Workload.hpp.

+
72  : BaseWorkload<QueueDescriptor>(descriptor, info)
73  {
74  std::vector<armnn::DataType> dataTypes = {DataTypes...};
75  armnn::DataType expectedInputType;
76 
77  if (!info.m_InputTensorInfos.empty())
78  {
79  expectedInputType = info.m_InputTensorInfos.front().GetDataType();
80 
81  if (std::find(dataTypes.begin(), dataTypes.end(), expectedInputType) == dataTypes.end())
82  {
83  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
84  }
85  ARMNN_ASSERT_MSG(std::all_of(std::next(info.m_InputTensorInfos.begin()),
86  info.m_InputTensorInfos.end(),
87  [&](auto it){
88  return it.GetDataType() == expectedInputType;
89  }),
90  "Trying to create workload with incorrect type");
91  }
92  armnn::DataType expectedOutputType;
93 
94  if (!info.m_OutputTensorInfos.empty())
95  {
96  expectedOutputType = info.m_OutputTensorInfos.front().GetDataType();
97 
98  if (!info.m_InputTensorInfos.empty())
99  {
100  if (expectedOutputType != expectedInputType)
101  {
102  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
103  }
104  }
105  else if (std::find(dataTypes.begin(), dataTypes.end(), expectedOutputType) == dataTypes.end())
106  {
107  ARMNN_ASSERT_MSG(false, "Trying to create workload with incorrect type");
108  }
109  ARMNN_ASSERT_MSG(std::all_of(std::next(info.m_OutputTensorInfos.begin()),
110  info.m_OutputTensorInfos.end(),
111  [&](auto it){
112  return it.GetDataType() == expectedOutputType;
113  }),
114  "Trying to create workload with incorrect type");
115  }
116  }
DataType
Definition: Types.hpp:35
+
#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