From d5d43d82c0137e08553e44345c609cdd1a7931c7 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 17 Jun 2022 13:24:58 +0100 Subject: Update Doxygen for 22.05 patch release * Pooling3D added to tfLite delegate * Available in tag 22.05.01 Signed-off-by: Nikhil Raj Change-Id: I8d605bba4e87d30baa2c6d7b338c78a4400dc021 --- ...uctarmnn_1_1_arg_min_max_queue_descriptor.xhtml | 226 +++++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 22.05.01/structarmnn_1_1_arg_min_max_queue_descriptor.xhtml (limited to '22.05.01/structarmnn_1_1_arg_min_max_queue_descriptor.xhtml') diff --git a/22.05.01/structarmnn_1_1_arg_min_max_queue_descriptor.xhtml b/22.05.01/structarmnn_1_1_arg_min_max_queue_descriptor.xhtml new file mode 100644 index 0000000000..2db071b116 --- /dev/null +++ b/22.05.01/structarmnn_1_1_arg_min_max_queue_descriptor.xhtml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + +ArmNN: ArgMinMaxQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05.01 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ArgMinMaxQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for ArgMinMaxQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< ArgMinMaxDescriptor > +QueueDescriptor + +
+ + + + + + + + + + + + + + + + + + + +

+Public Member Functions

void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptorWithParameters< ArgMinMaxDescriptor >
virtual ~QueueDescriptorWithParameters ()=default
 
- Public Member Functions inherited from QueueDescriptor
virtual ~QueueDescriptor ()=default
 
void ValidateTensorNumDimensions (const TensorInfo &tensor, std::string const &descName, unsigned int numDimensions, std::string const &tensorName) const
 
void ValidateTensorNumDimNumElem (const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
 
void ValidateInputsOutputs (const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
 
template<typename T >
const T * GetAdditionalInformation () const
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from QueueDescriptorWithParameters< ArgMinMaxDescriptor >
ArgMinMaxDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
bool m_AllowExpandedDims = false
 
- Protected Member Functions inherited from QueueDescriptorWithParameters< ArgMinMaxDescriptor >
 QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters (QueueDescriptorWithParameters const &)=default
 
QueueDescriptorWithParametersoperator= (QueueDescriptorWithParameters const &)=default
 
- Protected Member Functions inherited from QueueDescriptor
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 
+

Detailed Description

+
+

Definition at line 163 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 656 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Float16, armnn::Float32, TensorInfo::GetDataType(), TensorShape::GetNumDimensions(), TensorInfo::GetShape(), armnnUtils::GetUnsignedAxis(), WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, armnn::Signed32, and armnn::Signed64.

+
657 {
658  const std::string descriptorName{"ArgMinMaxQueueDescriptor"};
659 
660  ValidateNumInputs(workloadInfo, descriptorName, 1);
661  ValidateNumOutputs(workloadInfo, descriptorName, 1);
662 
663  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
664  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
665 
666  if (outputTensorInfo.GetDataType() != DataType::Signed32 &&
667  outputTensorInfo.GetDataType() != DataType::Signed64)
668  {
669  throw InvalidArgumentException(descriptorName + ": Output of ArgMinMax layer must be Int32 or Int64.");
670  }
671 
672  std::vector<DataType> supportedInputTypes =
673  {
682  };
683 
684  ValidateDataTypes(inputTensorInfo, supportedInputTypes, descriptorName);
685 
686  auto inputShape = inputTensorInfo.GetShape();
687  auto outputShape = outputTensorInfo.GetShape();
688 
689  auto inputNumDimensions = inputShape.GetNumDimensions();
690  auto unsignedAxis = armnnUtils::GetUnsignedAxis(inputNumDimensions, m_Parameters.m_Axis);
691 
692  const std::string outputShapeError{": Output tensor shape does not match shape inferred from input tensor."};
693 
694  // 1D input shape results in scalar output shape
695  if (inputShape.GetNumDimensions() == 1)
696  {
697  if (outputShape.GetNumDimensions() != 1 && outputShape[0] != 1)
698  {
699  throw InvalidArgumentException(descriptorName + outputShapeError);
700  }
701  }
702  else
703  {
704  for (unsigned int i = 0; i < unsignedAxis; ++i)
705  {
706  if (outputShape[i] != inputShape[i])
707  {
708  throw InvalidArgumentException(descriptorName + outputShapeError);
709  }
710  }
711 
712  for (auto i = unsignedAxis + 1; i < inputNumDimensions; ++i)
713  {
714  if (outputShape[i - 1] != inputShape[i])
715  {
716  throw InvalidArgumentException(descriptorName + outputShapeError);
717  }
718  }
719  }
720 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:191
+ + + + + + +
std::vector< TensorInfo > m_InputTensorInfos
+
DataType GetDataType() const
Definition: Tensor.hpp:198
+ +
unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis)
+ +
std::vector< TensorInfo > m_OutputTensorInfos
+ + +
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
Definition: Tensor.cpp:174
+ +
int m_Axis
Axis to reduce across the input tensor.
Definition: Descriptors.hpp:83
+
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1