From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- .../structarmnn_1_1_concat_queue_descriptor.xhtml | 250 +++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 22.02/structarmnn_1_1_concat_queue_descriptor.xhtml (limited to '22.02/structarmnn_1_1_concat_queue_descriptor.xhtml') diff --git a/22.02/structarmnn_1_1_concat_queue_descriptor.xhtml b/22.02/structarmnn_1_1_concat_queue_descriptor.xhtml new file mode 100644 index 0000000000..1b547d4c4b --- /dev/null +++ b/22.02/structarmnn_1_1_concat_queue_descriptor.xhtml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + +ArmNN: ConcatQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ConcatQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for ConcatQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< OriginsDescriptor > +QueueDescriptor + +
+ + + + +

+Classes

struct  ViewOrigin
 
+ + + + + + + + + + + + + + +

+Public Member Functions

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

+Public Attributes

std::vector< ViewOriginm_ViewOrigins
 
- Public Attributes inherited from QueueDescriptorWithParameters< OriginsDescriptor >
OriginsDescriptor 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< OriginsDescriptor >
 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 118 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 819 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Boolean, armnn::Float16, armnn::Float32, QueueDescriptor::m_Inputs, WorkloadInfo::m_InputTensorInfos, ConcatQueueDescriptor::ViewOrigin::m_Origin, QueueDescriptor::m_Outputs, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, and armnn::Signed32.

+
820 {
821  const std::string descriptorName{"ConcatQueueDescriptor"};
822 
823  ValidateNumOutputs(workloadInfo, descriptorName, 1);
824 
825  if (m_Inputs.size() <= 0)
826  {
827  throw InvalidArgumentException(descriptorName + ": At least one input needs to be provided.");
828  }
829  if (m_Outputs.size() <= 0)
830  {
831  throw InvalidArgumentException(descriptorName + ": At least one output needs to be provided.");
832  }
833 
834  if (workloadInfo.m_InputTensorInfos.size() <= 0)
835  {
836  throw InvalidArgumentException(descriptorName + ": At least one TensorInfo input needs to be provided.");
837  }
838  if (workloadInfo.m_OutputTensorInfos.size() <= 0)
839  {
840  throw InvalidArgumentException(descriptorName + ": At least one TensorInfo output needs to be provided.");
841  }
842 
843  if(m_Parameters.GetConcatAxis() > workloadInfo.m_InputTensorInfos[0].GetShape().GetNumDimensions())
844  {
845  throw InvalidArgumentException(descriptorName + ": Invalid concatenation axis provided.");
846  }
847 
848  if (workloadInfo.m_InputTensorInfos[0].GetShape().GetNumDimensions() - m_Parameters.GetConcatAxis() == 1)
849  {
850  return;
851  }
852 
853  if (workloadInfo.m_InputTensorInfos.size() != m_ViewOrigins.size())
854  {
856  descriptorName + ": Number of split windows "
857  "has to match number of workloadInfo.m_InputTensorInfos. "
858  "Number of windows: " +
859  to_string(m_ViewOrigins.size()) +
860  ". Number of workloadInfo.m_InputTensorInfos: " + to_string(workloadInfo.m_InputTensorInfos.size()));
861  }
862 
863  //The dimensionality of all the windows has to match the dimensionality (not shape) of the output.
864  std::size_t outputDims = workloadInfo.m_OutputTensorInfos[0].GetNumDimensions();
865  for(unsigned int w = 0; w < m_ViewOrigins.size(); ++w )
866  {
867  //Checks that the dimensionality of output is same as the split windows.
868  ViewOrigin const& e = m_ViewOrigins[w];
869  if (e.m_Origin.size() != outputDims)
870  {
871  throw InvalidArgumentException(descriptorName + ": Window origin have to "
872  "have the same dimensionality as the output tensor. "
873  "Window origin (index: " +
874  to_string(w) + ") has " + to_string(e.m_Origin.size()) +
875  " dimensions, the output "
876  "tensor has " +
877  to_string(outputDims) + " dimensions.");
878  }
879  //Checks that the merge windows are within the output tensor.
880  for (unsigned int i = 0; i < e.m_Origin.size(); ++i)
881  {
882  if (e.m_Origin[i] + workloadInfo.m_InputTensorInfos[w].GetShape()[i]
883  > workloadInfo.m_OutputTensorInfos[0].GetShape()[i])
884  {
885  throw InvalidArgumentException(descriptorName + ": Window extent coordinates have to "
886  "be smaller or equal than the size of the output in that coord.");
887  }
888  }
889  }
890 
891  // Check the supported data types
892  std::vector<DataType> supportedTypes =
893  {
902  };
903 
904  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
905  for (unsigned long i = 0ul; i < workloadInfo.m_InputTensorInfos.size(); ++i)
906  {
907  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[i];
908  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
909 
910  const std::string inputName = "input_" + std::to_string(i);
911  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, inputName, "output");
912  }
913 }
+ + + + + +
std::vector< TensorInfo > m_InputTensorInfos
+
std::vector< ViewOrigin > m_ViewOrigins
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+ + +
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
unsigned int GetConcatAxis() const
Get the concatenation axis value.
+
+
+
+

Member Data Documentation

+ +

◆ m_ViewOrigins

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