From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ...structarmnn_1_1_splitter_queue_descriptor.xhtml | 245 +++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 21.02/structarmnn_1_1_splitter_queue_descriptor.xhtml (limited to '21.02/structarmnn_1_1_splitter_queue_descriptor.xhtml') diff --git a/21.02/structarmnn_1_1_splitter_queue_descriptor.xhtml b/21.02/structarmnn_1_1_splitter_queue_descriptor.xhtml new file mode 100644 index 0000000000..456e8d13e6 --- /dev/null +++ b/21.02/structarmnn_1_1_splitter_queue_descriptor.xhtml @@ -0,0 +1,245 @@ + + + + + + + + + + + + + +ArmNN: SplitterQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SplitterQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for SplitterQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< ViewsDescriptor > +QueueDescriptor + +
+ + + + +

+Classes

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

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

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

+Additional Inherited Members

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

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 734 of file WorkloadData.cpp.

+ +

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

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

Member Data Documentation

+ +

◆ m_ViewOrigins

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