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 --- .../structarmnn_1_1_permute_queue_descriptor.xhtml | 210 +++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 21.11/structarmnn_1_1_permute_queue_descriptor.xhtml (limited to '21.11/structarmnn_1_1_permute_queue_descriptor.xhtml') diff --git a/21.11/structarmnn_1_1_permute_queue_descriptor.xhtml b/21.11/structarmnn_1_1_permute_queue_descriptor.xhtml new file mode 100644 index 0000000000..1903cc3fc1 --- /dev/null +++ b/21.11/structarmnn_1_1_permute_queue_descriptor.xhtml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + +ArmNN: PermuteQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
PermuteQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for PermuteQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< PermuteDescriptor > +QueueDescriptor + +
+ + + + + + + + + + +

+Public Member Functions

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
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from QueueDescriptorWithParameters< PermuteDescriptor >
PermuteDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
- Protected Member Functions inherited from QueueDescriptorWithParameters< PermuteDescriptor >
 ~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 185 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 1478 of file WorkloadData.cpp.

+ +

References TensorInfo::GetShape(), PermutationVector::GetSize(), WorkloadInfo::m_InputTensorInfos, and WorkloadInfo::m_OutputTensorInfos.

+
1479 {
1480  const std::string descriptorName{"PermuteQueueDescriptor"};
1481 
1482  ValidateNumInputs(workloadInfo, descriptorName, 1);
1483  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1484 
1485  const PermutationVector& mapping = m_Parameters.m_DimMappings;
1486 
1487  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1488  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1489 
1490  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, mapping.GetSize(), "input");
1491  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, mapping.GetSize(), "output");
1492 
1493  for (unsigned int i = 0u; i < mapping.GetSize(); ++i)
1494  {
1495  if (inputTensorInfo.GetShape()[i] != outputTensorInfo.GetShape()[mapping[i]])
1496  {
1497  throw InvalidArgumentException(descriptorName + ": src dimension " + to_string(i) +
1498  " (=" + to_string(inputTensorInfo.GetShape()[i]) + ") " +
1499  "must match dst dimension " + to_string(mapping[i]) +
1500  " (=" + to_string(outputTensorInfo.GetShape()[mapping[i]]) + ")");
1501  }
1502  }
1503 
1504  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1505 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:191
+ +
SizeType GetSize() const
Definition: Types.hpp:311
+ +
PermutationVector m_DimMappings
Indicates how to translate tensor elements from a given source into the target destination, when source and target potentially have different memory layouts e.g.
+
std::vector< TensorInfo > m_InputTensorInfos
+
std::vector< TensorInfo > m_OutputTensorInfos
+ + +
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1