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

#include <WorkloadData.hpp>

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

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 1343 of file WorkloadData.cpp.

+ +

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

+
1344 {
1345  const std::string descriptorName{"ResizeBilinearQueueDescriptor"};
1346 
1347  ValidateNumInputs(workloadInfo, descriptorName, 1);
1348  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1349 
1350  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1351  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1352 
1353  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input");
1354  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output");
1355 
1356  std::vector<DataType> supportedTypes =
1357  {
1363  };
1364 
1365  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
1366  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1367 
1368  // ResizeBilinear only changes width and height: batch and channel count must match.
1369  const unsigned int inputBatchSize = inputTensorInfo.GetShape()[0];
1370  const unsigned int outputBatchSize = outputTensorInfo.GetShape()[0];
1371  if (inputBatchSize != outputBatchSize)
1372  {
1374  boost::str(boost::format("%1%: Input batch size (%2%) "
1375  "does not match output batch size (%3%)") %
1376  descriptorName % inputBatchSize % outputBatchSize));
1377  }
1378 
1379  DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout);
1380  const unsigned int inputChannelCount = inputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1381  const unsigned int outputChannelCount = outputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()];
1382  if (inputChannelCount != outputChannelCount)
1383  {
1385  boost::str(boost::format("%1%: Input channel count (%2%) "
1386  "does not match output channel count (%3%)") %
1387  descriptorName % inputChannelCount % outputChannelCount));
1388  }
1389 }
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+ +
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+ + +
std::vector< TensorInfo > m_InputTensorInfos
+
Provides access to the appropriate indexes for Channels, Height and Width based on DataLayout...
+ + +
std::vector< TensorInfo > m_OutputTensorInfos
+ + + +
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1