From a983e4699082a0b1ef685bab7354f2ad9cd37a44 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Wed, 20 May 2020 16:12:19 +0100 Subject: Updating Doxygen documentation for 20.05 release. Change-Id: I4d624343ed5fd6ae269c3d53532903084508fd14 Signed-off-by: Colm Donelan --- .../structarmnn_1_1_resize_queue_descriptor.xhtml | 210 +++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 20.05/structarmnn_1_1_resize_queue_descriptor.xhtml (limited to '20.05/structarmnn_1_1_resize_queue_descriptor.xhtml') diff --git a/20.05/structarmnn_1_1_resize_queue_descriptor.xhtml b/20.05/structarmnn_1_1_resize_queue_descriptor.xhtml new file mode 100644 index 0000000000..99e3a1cb8b --- /dev/null +++ b/20.05/structarmnn_1_1_resize_queue_descriptor.xhtml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + +ArmNN: ResizeQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
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 1423 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.

+
1424 {
1425  const std::string descriptorName{"ResizeQueueDescriptor"};
1426 
1427  ValidateNumInputs(workloadInfo, descriptorName, 1);
1428  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1429 
1430  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1431  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1432 
1433  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input");
1434  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output");
1435 
1436  std::vector<DataType> supportedTypes =
1437  {
1444  };
1445 
1446  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
1447  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1448 
1449  // Resize only changes width and height: batch and channel count must match.
1450  const unsigned int inputBatchSize = inputTensorInfo.GetShape()[0];
1451  const unsigned int outputBatchSize = outputTensorInfo.GetShape()[0];
1452  if (inputBatchSize != outputBatchSize)
1453  {
1455  boost::str(boost::format("%1%: Input batch size (%2%) "
1456  "does not match output batch size (%3%)") %
1457  descriptorName % inputBatchSize % outputBatchSize));
1458  }
1459 
1460  DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout);
1461  const unsigned int inputChannelCount = inputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1462  const unsigned int outputChannelCount = outputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1463  if (inputChannelCount != outputChannelCount)
1464  {
1466  boost::str(boost::format("%1%: Input channel count (%2%) "
1467  "does not match output channel count (%3%)") %
1468  descriptorName % inputChannelCount % outputChannelCount));
1469  }
1470 }
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