From de36e4a9c299028e792c3a5bd99ad0816d806077 Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Fri, 13 Mar 2020 16:26:19 +0000 Subject: IVGCVSW-3726 Upload ArmNN Doxygen files * Upload current ArmNN Doxygen files Signed-off-by: Ryan OShea Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285 --- ...ctarmnn_1_1_strided_slice_queue_descriptor.html | 195 +++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 Documentation/structarmnn_1_1_strided_slice_queue_descriptor.html (limited to 'Documentation/structarmnn_1_1_strided_slice_queue_descriptor.html') diff --git a/Documentation/structarmnn_1_1_strided_slice_queue_descriptor.html b/Documentation/structarmnn_1_1_strided_slice_queue_descriptor.html new file mode 100644 index 0000000000..1fb6407b9d --- /dev/null +++ b/Documentation/structarmnn_1_1_strided_slice_queue_descriptor.html @@ -0,0 +1,195 @@ + + + + + + + +ArmNN: StridedSliceQueueDescriptor Struct Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
ArmNN +  NotReleased +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
StridedSliceQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for StridedSliceQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< StridedSliceDescriptor > +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
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from QueueDescriptorWithParameters< StridedSliceDescriptor >
StridedSliceDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
- Protected Member Functions inherited from QueueDescriptorWithParameters< StridedSliceDescriptor >
 ~QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters (QueueDescriptorWithParameters const &)=default
 
QueueDescriptorWithParametersoperator= (QueueDescriptorWithParameters const &)=default
 
- Protected Member Functions inherited from QueueDescriptor
 ~QueueDescriptor ()=default
 
 QueueDescriptor ()=default
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 
+

Detailed Description

+
+

Definition at line 425 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 2247 of file WorkloadData.cpp.

+ +

References armnn::Float16, armnn::Float32, TensorInfo::GetNumDimensions(), WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmU8, and armnn::QSymmS16.

+
2248 {
2249  const std::string descriptorName{"StridedSliceQueueDescriptor"};
2250 
2251  ValidateNumInputs(workloadInfo, descriptorName, 1);
2252  ValidateNumOutputs(workloadInfo, descriptorName, 1);
2253 
2254  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
2255  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
2256 
2257  std::vector<DataType> supportedTypes =
2258  {
2263  };
2264 
2265  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
2266  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2267 
2268  ValidateTensorQuantizationSpace(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2269 
2270  const uint32_t rank = inputTensorInfo.GetNumDimensions();
2271  if (rank > 4)
2272  {
2273  throw InvalidArgumentException(descriptorName + ": Input tensors with rank greater than 4 are not supported.");
2274  }
2275 
2276  // Begin, End & Stride length must be of rank(input0)
2277  if (m_Parameters.m_Begin.size() != rank)
2278  {
2279  throw InvalidArgumentException(descriptorName + ": Begin length must be of rank " + std::to_string(rank));
2280  }
2281 
2282  if (m_Parameters.m_End.size() != rank)
2283  {
2284  throw InvalidArgumentException(descriptorName + ": End length must be of rank " + std::to_string(rank));
2285  }
2286 
2287  if (m_Parameters.m_Stride.size() != rank)
2288  {
2289  throw InvalidArgumentException(descriptorName + ": Stride length must be of rank " + std::to_string(rank));
2290  }
2291 
2292  // Stride entries must be non-zero
2293  for (auto& stride : m_Parameters.m_Stride)
2294  {
2295  if (stride == 0)
2296  {
2297  throw InvalidArgumentException(descriptorName + ": Stride entries must be non-zero.");
2298  }
2299  }
2300 }
+
std::vector< int > m_Stride
Stride values for the input that will be sliced.
+
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+
std::vector< int > m_Begin
Begin values for the input that will be sliced.
+ + + +
std::vector< int > m_End
End values for the input that will be sliced.
+
std::vector< TensorInfo > m_InputTensorInfos
+ +
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1