From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- ...1_detection_post_process_queue_descriptor.xhtml | 273 +++++++++++++++++++++ 1 file changed, 273 insertions(+) create mode 100644 21.11/structarmnn_1_1_detection_post_process_queue_descriptor.xhtml (limited to '21.11/structarmnn_1_1_detection_post_process_queue_descriptor.xhtml') diff --git a/21.11/structarmnn_1_1_detection_post_process_queue_descriptor.xhtml b/21.11/structarmnn_1_1_detection_post_process_queue_descriptor.xhtml new file mode 100644 index 0000000000..68b1a486fe --- /dev/null +++ b/21.11/structarmnn_1_1_detection_post_process_queue_descriptor.xhtml @@ -0,0 +1,273 @@ + + + + + + + + + + + + + +ArmNN: DetectionPostProcessQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
DetectionPostProcessQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for DetectionPostProcessQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< DetectionPostProcessDescriptor > +QueueDescriptor + +
+ + + + + + + + + + + + +

+Public Member Functions

 DetectionPostProcessQueueDescriptor ()
 
void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptor
void ValidateInputsOutputs (const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
 
template<typename T >
const T * GetAdditionalInformation () const
 
+ + + + + + + + + + + + + +

+Public Attributes

const ConstTensorHandlem_Anchors
 
- Public Attributes inherited from QueueDescriptorWithParameters< DetectionPostProcessDescriptor >
DetectionPostProcessDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
+ + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from QueueDescriptorWithParameters< DetectionPostProcessDescriptor >
 ~QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters (QueueDescriptorWithParameters const &)=default
 
QueueDescriptorWithParametersoperator= (QueueDescriptorWithParameters const &)=default
 
- Protected Member Functions inherited from QueueDescriptor
 ~QueueDescriptor ()=default
 
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 
+

Detailed Description

+
+

Definition at line 244 of file WorkloadData.hpp.

+

Constructor & Destructor Documentation

+ +

◆ DetectionPostProcessQueueDescriptor()

+ +
+
+ + + + + +
+ + + + + + + +
DetectionPostProcessQueueDescriptor ()
+
+inline
+
+ +

Definition at line 246 of file WorkloadData.hpp.

+
247  : m_Anchors(nullptr)
248  {
249  }
const ConstTensorHandle * m_Anchors
+
+
+
+

Member Function Documentation

+ +

◆ Validate()

+ +
+
+ + + + + + + + +
void Validate (const WorkloadInfoworkloadInfo) const
+
+ +

Definition at line 2728 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Float16, armnn::Float32, TensorInfo::GetShape(), WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, and armnn::QSymmS16.

+
2729 {
2730  const std::string& descriptorName{"DetectionPostProcessQueueDescriptor"};
2731 
2732  ValidateNumInputs(workloadInfo, descriptorName, 2);
2733 
2734  if (workloadInfo.m_OutputTensorInfos.size() != 4)
2735  {
2736  throw InvalidArgumentException(descriptorName + ": Requires exactly four outputs. " +
2737  to_string(workloadInfo.m_OutputTensorInfos.size()) + " has been provided.");
2738  }
2739 
2740  if (m_Anchors == nullptr)
2741  {
2742  throw InvalidArgumentException(descriptorName + ": Anchors tensor descriptor is missing.");
2743  }
2744 
2745  const TensorInfo& boxEncodingsInfo = workloadInfo.m_InputTensorInfos[0];
2746  const TensorInfo& scoresInfo = workloadInfo.m_InputTensorInfos[1];
2747  const TensorInfo& anchorsInfo = m_Anchors->GetTensorInfo();
2748 
2749  const TensorInfo& detectionBoxesInfo = workloadInfo.m_OutputTensorInfos[0];
2750  const TensorInfo& detectionClassesInfo = workloadInfo.m_OutputTensorInfos[1];
2751  const TensorInfo& detectionScoresInfo = workloadInfo.m_OutputTensorInfos[2];
2752  const TensorInfo& numDetectionsInfo = workloadInfo.m_OutputTensorInfos[3];
2753 
2754  ValidateTensorNumDimensions(boxEncodingsInfo, descriptorName, 3, "box encodings");
2755  ValidateTensorNumDimensions(scoresInfo, descriptorName, 3, "scores");
2756  ValidateTensorNumDimensions(anchorsInfo, descriptorName, 2, "anchors");
2757 
2758  const std::vector<DataType> supportedInputTypes =
2759  {
2766  };
2767 
2768  ValidateDataTypes(boxEncodingsInfo, supportedInputTypes, descriptorName);
2769  ValidateDataTypes(scoresInfo, supportedInputTypes, descriptorName);
2770  ValidateDataTypes(anchorsInfo, supportedInputTypes, descriptorName);
2771 
2772  ValidateTensorNumDimensions(detectionBoxesInfo, descriptorName, 3, "detection boxes");
2773  ValidateTensorNumDimensions(detectionScoresInfo, descriptorName, 2, "detection scores");
2774  ValidateTensorNumDimensions(detectionClassesInfo, descriptorName, 2, "detection classes");
2775  ValidateTensorNumDimensions(numDetectionsInfo, descriptorName, 1, "num detections");
2776 
2777  // NOTE: Output is always Float32 regardless of input type
2778  ValidateTensorDataType(detectionBoxesInfo, DataType::Float32, descriptorName, "detection boxes");
2779  ValidateTensorDataType(detectionScoresInfo, DataType::Float32, descriptorName, "detection scores");
2780  ValidateTensorDataType(detectionClassesInfo, DataType::Float32, descriptorName, "detection classes");
2781  ValidateTensorDataType(numDetectionsInfo, DataType::Float32, descriptorName, "num detections");
2782 
2784  {
2785  throw InvalidArgumentException(descriptorName + ": Intersection over union threshold "
2786  "must be positive and less than or equal to 1.");
2787  }
2788 
2789  if (scoresInfo.GetShape()[2] != m_Parameters.m_NumClasses + 1)
2790  {
2791  throw InvalidArgumentException(descriptorName + ": Number of classes with background "
2792  "should be equal to number of classes + 1.");
2793  }
2794 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:191
+ + + + +
const TensorInfo & GetTensorInfo() const
+
std::vector< TensorInfo > m_InputTensorInfos
+
float m_NmsIouThreshold
Intersection over union threshold.
+ + +
uint32_t m_NumClasses
Number of classes.
+
std::vector< TensorInfo > m_OutputTensorInfos
+ + + +
const ConstTensorHandle * m_Anchors
+
+
+
+

Member Data Documentation

+ +

◆ m_Anchors

+ +
+
+ + + + +
const ConstTensorHandle* m_Anchors
+
+ +

Definition at line 251 of file WorkloadData.hpp.

+ +

Referenced by DetectionPostProcessLayer::CreateWorkload().

+ +
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1