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_resize_queue_descriptor.xhtml | 215 +++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 21.02/structarmnn_1_1_resize_queue_descriptor.xhtml (limited to '21.02/structarmnn_1_1_resize_queue_descriptor.xhtml') diff --git a/21.02/structarmnn_1_1_resize_queue_descriptor.xhtml b/21.02/structarmnn_1_1_resize_queue_descriptor.xhtml new file mode 100644 index 0000000000..d774553eb0 --- /dev/null +++ b/21.02/structarmnn_1_1_resize_queue_descriptor.xhtml @@ -0,0 +1,215 @@ + + + + + + + + + + + + + +ArmNN: ResizeQueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.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
 
template<typename T >
const T * GetAdditionalInformation () 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
 
void * m_AdditionalInfoObject
 
- 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 ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 
+

Detailed Description

+
+

Definition at line 321 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 1490 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.

+
1491 {
1492  const std::string descriptorName{"ResizeQueueDescriptor"};
1493 
1494  ValidateNumInputs(workloadInfo, descriptorName, 1);
1495  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1496 
1497  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1498  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1499 
1500  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input");
1501  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output");
1502 
1503  std::vector<DataType> supportedTypes =
1504  {
1511  };
1512 
1513  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
1514  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1515 
1516  // Resize only changes width and height: batch and channel count must match.
1517  const unsigned int inputBatchSize = inputTensorInfo.GetShape()[0];
1518  const unsigned int outputBatchSize = outputTensorInfo.GetShape()[0];
1519  if (inputBatchSize != outputBatchSize)
1520  {
1522  fmt::format("{}: Input batch size ({}) does not match output batch size ({})",
1523  descriptorName, inputBatchSize, outputBatchSize));
1524  }
1525 
1526  DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout);
1527  const unsigned int inputChannelCount = inputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1528  const unsigned int outputChannelCount = outputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1529  if (inputChannelCount != outputChannelCount)
1530  {
1532  fmt::format("{}: Input channel count ({}) does not match output channel count ({})",
1533  descriptorName, inputChannelCount, outputChannelCount));
1534  }
1535 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:187
+ + + + +
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