From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...tarmnn_1_1_strided_slice_queue_descriptor.xhtml | 210 +++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 20.02/structarmnn_1_1_strided_slice_queue_descriptor.xhtml (limited to '20.02/structarmnn_1_1_strided_slice_queue_descriptor.xhtml') diff --git a/20.02/structarmnn_1_1_strided_slice_queue_descriptor.xhtml b/20.02/structarmnn_1_1_strided_slice_queue_descriptor.xhtml new file mode 100644 index 0000000000..cdca9c36c1 --- /dev/null +++ b/20.02/structarmnn_1_1_strided_slice_queue_descriptor.xhtml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + +ArmNN: StridedSliceQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
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 2280 of file WorkloadData.cpp.

+ +

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

+
2281 {
2282  const std::string descriptorName{"StridedSliceQueueDescriptor"};
2283 
2284  ValidateNumInputs(workloadInfo, descriptorName, 1);
2285  ValidateNumOutputs(workloadInfo, descriptorName, 1);
2286 
2287  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
2288  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
2289 
2290  std::vector<DataType> supportedTypes =
2291  {
2297  };
2298 
2299  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
2300  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2301 
2302  ValidateTensorQuantizationSpace(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2303 
2304  const uint32_t rank = inputTensorInfo.GetNumDimensions();
2305  if (rank > 4)
2306  {
2307  throw InvalidArgumentException(descriptorName + ": Input tensors with rank greater than 4 are not supported.");
2308  }
2309 
2310  // Begin, End & Stride length must be of rank(input0)
2311  if (m_Parameters.m_Begin.size() != rank)
2312  {
2313  throw InvalidArgumentException(descriptorName + ": Begin length must be of rank " + std::to_string(rank));
2314  }
2315 
2316  if (m_Parameters.m_End.size() != rank)
2317  {
2318  throw InvalidArgumentException(descriptorName + ": End length must be of rank " + std::to_string(rank));
2319  }
2320 
2321  if (m_Parameters.m_Stride.size() != rank)
2322  {
2323  throw InvalidArgumentException(descriptorName + ": Stride length must be of rank " + std::to_string(rank));
2324  }
2325 
2326  // Stride entries must be non-zero
2327  for (auto& stride : m_Parameters.m_Stride)
2328  {
2329  if (stride == 0)
2330  {
2331  throw InvalidArgumentException(descriptorName + ": Stride entries must be non-zero.");
2332  }
2333  }
2334 }
std::vector< int > m_Begin
Begin values for the input that will be sliced.
+ + + +
std::vector< TensorInfo > m_InputTensorInfos
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+
std::vector< int > m_Stride
Stride values for the input that will be sliced.
+ + +
std::vector< int > m_End
End values for the input that will be sliced.
+ +
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1