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 --- .../structarmnn_1_1_resize_queue_descriptor.xhtml | 210 +++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 20.02/structarmnn_1_1_resize_queue_descriptor.xhtml (limited to '20.02/structarmnn_1_1_resize_queue_descriptor.xhtml') diff --git a/20.02/structarmnn_1_1_resize_queue_descriptor.xhtml b/20.02/structarmnn_1_1_resize_queue_descriptor.xhtml new file mode 100644 index 0000000000..d9e780394f --- /dev/null +++ b/20.02/structarmnn_1_1_resize_queue_descriptor.xhtml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + +ArmNN: ResizeQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ResizeQueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for ResizeQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< ResizeDescriptor > +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< ResizeDescriptor >
ResizeDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
- Protected Member Functions inherited from QueueDescriptorWithParameters< ResizeDescriptor >
 ~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 292 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 1391 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Float16, armnn::Float32, DataLayoutIndexed::GetChannelsIndex(), TensorInfo::GetShape(), WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, and armnn::QSymmS16.

+
1392 {
1393  const std::string descriptorName{"ResizeQueueDescriptor"};
1394 
1395  ValidateNumInputs(workloadInfo, descriptorName, 1);
1396  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1397 
1398  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1399  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1400 
1401  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input");
1402  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output");
1403 
1404  std::vector<DataType> supportedTypes =
1405  {
1412  };
1413 
1414  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
1415  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1416 
1417  // Resize only changes width and height: batch and channel count must match.
1418  const unsigned int inputBatchSize = inputTensorInfo.GetShape()[0];
1419  const unsigned int outputBatchSize = outputTensorInfo.GetShape()[0];
1420  if (inputBatchSize != outputBatchSize)
1421  {
1423  boost::str(boost::format("%1%: Input batch size (%2%) "
1424  "does not match output batch size (%3%)") %
1425  descriptorName % inputBatchSize % outputBatchSize));
1426  }
1427 
1428  DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout);
1429  const unsigned int inputChannelCount = inputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1430  const unsigned int outputChannelCount = outputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1431  if (inputChannelCount != outputChannelCount)
1432  {
1434  boost::str(boost::format("%1%: Input channel count (%2%) "
1435  "does not match output channel count (%3%)") %
1436  descriptorName % inputChannelCount % outputChannelCount));
1437  }
1438 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+ + + + +
std::vector< TensorInfo > m_InputTensorInfos
+
Provides access to the appropriate indexes for Channels, Height and Width based on DataLayout...
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+ + + +
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1