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

#include <WorkloadData.hpp>

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

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 3005 of file WorkloadData.cpp.

+ +

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

+
3006 {
3007  const std::string descriptorName{"DepthToSpaceQueueDescriptor"};
3008 
3009  ValidateNumInputs(workloadInfo, descriptorName, 1);
3010  ValidateNumOutputs(workloadInfo, descriptorName, 1);
3011 
3012  const TensorInfo& inputInfo = workloadInfo.m_InputTensorInfos[0];
3013  const TensorInfo& outputInfo = workloadInfo.m_OutputTensorInfos[0];
3014 
3015  ValidateTensorNumDimensions(inputInfo, descriptorName, 4, "input");
3016  ValidateTensorNumDimensions(outputInfo, descriptorName, 4, "output");
3017 
3018  std::vector<DataType> supportedTypes =
3019  {
3025  };
3026 
3027  ValidateDataTypes(inputInfo, supportedTypes, descriptorName);
3028  ValidateDataTypes(outputInfo, supportedTypes, descriptorName);
3029 
3030  ValidateTensorNumElementsMatch(inputInfo, outputInfo, descriptorName, "input", "output");
3031 
3032  if (m_Parameters.m_BlockSize == 0)
3033  {
3034  throw InvalidArgumentException(descriptorName + ": Block size cannot be 0.");
3035  }
3036 
3037  DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout);
3038  const unsigned int wIndex = dimensionIndices.GetWidthIndex();
3039  const unsigned int hIndex = dimensionIndices.GetHeightIndex();
3040  const unsigned int cIndex = dimensionIndices.GetChannelsIndex();
3041 
3042  const TensorShape& outputShape = outputInfo.GetShape();
3043  if (outputShape[hIndex] % m_Parameters.m_BlockSize != 0 || outputShape[wIndex] % m_Parameters.m_BlockSize != 0)
3044  {
3045  throw InvalidArgumentException(descriptorName + ": Output width and height shape"
3046  "must be divisible by block size.");
3047  }
3048 
3049  const TensorShape& inputShape = inputInfo.GetShape();
3050  if (inputShape[cIndex] % (m_Parameters.m_BlockSize * m_Parameters.m_BlockSize) != 0)
3051  {
3052  throw InvalidArgumentException(descriptorName + ": The depth of the input tensor"
3053  "must be divisible by the square of block size." );
3054  }
3055 }
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
+ + +
unsigned int m_BlockSize
Scalar specifying the input block size. It must be >= 1.
+
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