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

#include <WorkloadData.hpp>

+
+Inheritance diagram for Convolution2dQueueDescriptor:
+
+
+ + +QueueDescriptorWithParameters< Convolution2dDescriptor > +QueueDescriptor + +
+ + + + + + + + + +

+Public Member Functions

 Convolution2dQueueDescriptor ()
 
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
 
+ + + + + + + + + + + + + +

+Public Attributes

const ConstCpuTensorHandlem_Weight
 
const ConstCpuTensorHandlem_Bias
 
- Public Attributes inherited from QueueDescriptorWithParameters< Convolution2dDescriptor >
Convolution2dDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
+ + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from QueueDescriptorWithParameters< Convolution2dDescriptor >
 ~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 168 of file WorkloadData.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Convolution2dQueueDescriptor()

+ +
+
+ + + + + +
+ + + + + + + +
Convolution2dQueueDescriptor ()
+
+inline
+
+ +

Definition at line 170 of file WorkloadData.hpp.

+
171  : m_Weight(nullptr)
172  , m_Bias(nullptr)
173  {
174  }
const ConstCpuTensorHandle * m_Bias
+
const ConstCpuTensorHandle * m_Weight
+
+
+
+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 1159 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Float16, armnn::Float32, armnn::GetBiasDataType(), TensorInfo::GetDataType(), WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, armnn::QSymmS8, and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
1160 {
1161  const std::string descriptorName{"Convolution2dQueueDescriptor"};
1162 
1163  ValidateNumInputs(workloadInfo, descriptorName, 1);
1164  ValidateNumOutputs(workloadInfo, descriptorName, 1);
1165 
1166  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
1167  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
1168 
1169  ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input");
1170  ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output");
1171 
1172  ValidatePointer(m_Weight, descriptorName, "weight");
1173 
1174  const TensorInfo& weightTensorInfo = m_Weight->GetTensorInfo();
1175  ValidateTensorNumDimensions(weightTensorInfo, descriptorName, 4, "weight");
1176 
1177  ValidateWeightDataType(inputTensorInfo, weightTensorInfo, descriptorName);
1178 
1179  Optional<TensorInfo> optionalBiasTensorInfo;
1181  {
1182  ValidatePointer(m_Bias, descriptorName, "bias");
1183 
1184  optionalBiasTensorInfo = MakeOptional<TensorInfo>(m_Bias->GetTensorInfo());
1185  const TensorInfo& biasTensorInfo = optionalBiasTensorInfo.value();
1186 
1187  ValidateTensorDataType(biasTensorInfo, GetBiasDataType(inputTensorInfo.GetDataType()), descriptorName, "bias");
1188  ValidateBiasTensorQuantization(biasTensorInfo, inputTensorInfo, weightTensorInfo, descriptorName);
1189  }
1190 
1191  ValidatePerAxisQuantization(inputTensorInfo,
1192  outputTensorInfo,
1193  weightTensorInfo,
1194  optionalBiasTensorInfo,
1195  descriptorName);
1196 
1197  std::vector<DataType> supportedTypes =
1198  {
1206  };
1207 
1208  ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName);
1209  ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
1210 }
bool m_BiasEnabled
Enable/disable bias.
+
const ConstCpuTensorHandle * m_Bias
+ + + + + + +
std::vector< TensorInfo > m_InputTensorInfos
+
DataType GetDataType() const
Definition: Tensor.hpp:95
+ +
const ConstCpuTensorHandle * m_Weight
+ +
std::vector< TensorInfo > m_OutputTensorInfos
+ +
DataType GetBiasDataType(DataType inputDataType)
+ + +
const TensorInfo & GetTensorInfo() const
+
+
+
+

Member Data Documentation

+ +

◆ m_Bias

+ + + +

◆ m_Weight

+ + +
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1