From 6f92c8e9f8bb38dcf5dccf8deeff5112ecd8e37c Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 22 Nov 2023 11:41:15 +0000 Subject: Update Doxygen for 23.11 Signed-off-by: Nikhil Raj Change-Id: I47cd933f5002cb94a73aa97689d7b3d9c93cb849 --- .../structarmnn_1_1_splitter_queue_descriptor.html | 322 +++++++++++++++++++++ 1 file changed, 322 insertions(+) create mode 100644 23.11/structarmnn_1_1_splitter_queue_descriptor.html (limited to '23.11/structarmnn_1_1_splitter_queue_descriptor.html') diff --git a/23.11/structarmnn_1_1_splitter_queue_descriptor.html b/23.11/structarmnn_1_1_splitter_queue_descriptor.html new file mode 100644 index 0000000000..43c515cd39 --- /dev/null +++ b/23.11/structarmnn_1_1_splitter_queue_descriptor.html @@ -0,0 +1,322 @@ + + + + + + + + +Arm NN: SplitterQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SplitterQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for SplitterQueueDescriptor:
+
+
+
+
[legend]
+
+Collaboration diagram for SplitterQueueDescriptor:
+
+
+
+
[legend]
+ + + + +

+Classes

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

+Public Member Functions

void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptorWithParameters< ViewsDescriptor >
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
 
+ + + + + + + + + + + + + + + +

+Public Attributes

std::vector< ViewOriginm_ViewOrigins
 
- Public Attributes inherited from QueueDescriptorWithParameters< ViewsDescriptor >
ViewsDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
bool m_AllowExpandedDims = false
 
+ + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from QueueDescriptorWithParameters< ViewsDescriptor >
 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 111 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 746 of file WorkloadData.cpp.

+
747 {
+
748  const std::string descriptorName{"SplitterQueueDescriptor"};
+
749 
+
750  ValidateNumInputs(workloadInfo, descriptorName, 1);
+
751 
+
752  // Check the supported data types
+
753  std::vector<DataType> supportedTypes =
+
754  {
+ + + + + + + + +
763  };
+
764 
+
765  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
+
766  for (unsigned long i = 0ul; i < workloadInfo.m_OutputTensorInfos.size(); ++i)
+
767  {
+
768  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[i];
+
769  ValidateDataTypes(outputTensorInfo, supportedTypes, descriptorName);
+
770 
+
771  const std::string outputName = "output_" + std::to_string(i);
+
772  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", outputName);
+
773  }
+
774 
+
775  if (workloadInfo.m_OutputTensorInfos.size() <= 0)
+
776  {
+
777  throw InvalidArgumentException(descriptorName + ": At least one output needs to be provided.");
+
778  }
+
779 
+
780  if (workloadInfo.m_OutputTensorInfos.size() != m_ViewOrigins.size())
+
781  {
+ +
783  descriptorName + ": Number of split windows "
+
784  "has to match number of workloadInfo.m_OutputTensorInfos. "
+
785  "Number of windows: " +
+
786  to_string(m_ViewOrigins.size()) +
+
787  ". Number of workloadInfo.m_OutputTensorInfos: " + to_string(workloadInfo.m_OutputTensorInfos.size()));
+
788  }
+
789 
+
790  //The dimensionality of all the windows has to match the dimensionality (not shape) of the input.
+
791  std::size_t inputDims = workloadInfo.m_InputTensorInfos[0].GetNumDimensions();
+
792  for(unsigned int w = 0; w < m_ViewOrigins.size(); ++w )
+
793  {
+
794  //Checks that the dimensionality of input is same as the split windows.
+
795  ViewOrigin const& e = m_ViewOrigins[w];
+
796  if (e.m_Origin.size() != inputDims)
+
797  {
+
798  throw InvalidArgumentException(descriptorName + ": Window origin have to "
+
799  "have the same dimensionality as the input tensor. "
+
800  "Window origin (index: " +
+
801  to_string(w) + ") has " + to_string(e.m_Origin.size()) +
+
802  " dimensions, the input "
+
803  "tensor has " +
+
804  to_string(inputDims) + " dimensions.");
+
805  }
+
806  for (unsigned int i = 0; i < e.m_Origin.size(); ++i)
+
807  {
+
808  if (e.m_Origin[i] + workloadInfo.m_OutputTensorInfos[w].GetShape()[i] >
+
809  workloadInfo.m_InputTensorInfos[0].GetShape()[i])
+
810  {
+
811  throw InvalidArgumentException(descriptorName + ": Window extent coordinates have to "
+
812  "be smaller or equal than the size of the input in that coord.");
+
813  }
+
814  }
+
815  }
+
816 }
+
+

References armnn::BFloat16, armnn::Boolean, armnn::Float16, armnn::Float32, WorkloadInfo::m_InputTensorInfos, SplitterQueueDescriptor::ViewOrigin::m_Origin, WorkloadInfo::m_OutputTensorInfos, SplitterQueueDescriptor::m_ViewOrigins, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, and armnn::Signed32.

+ +
+
+

Member Data Documentation

+ +

◆ m_ViewOrigins

+ +
+
+ + + + +
std::vector<ViewOrigin> m_ViewOrigins
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + +
std::vector< ViewOrigin > m_ViewOrigins
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+ + + + +
std::vector< TensorInfo > m_InputTensorInfos
+ + + + -- cgit v1.2.1