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 --- ...1_1_convert_fp32_to_bf16_queue_descriptor.xhtml | 195 +++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 21.02/structarmnn_1_1_convert_fp32_to_bf16_queue_descriptor.xhtml (limited to '21.02/structarmnn_1_1_convert_fp32_to_bf16_queue_descriptor.xhtml') diff --git a/21.02/structarmnn_1_1_convert_fp32_to_bf16_queue_descriptor.xhtml b/21.02/structarmnn_1_1_convert_fp32_to_bf16_queue_descriptor.xhtml new file mode 100644 index 0000000000..823a6b63bd --- /dev/null +++ b/21.02/structarmnn_1_1_convert_fp32_to_bf16_queue_descriptor.xhtml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + +ArmNN: ConvertFp32ToBf16QueueDescriptor Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ConvertFp32ToBf16QueueDescriptor Struct Reference
+
+
+ +

#include <WorkloadData.hpp>

+
+Inheritance diagram for ConvertFp32ToBf16QueueDescriptor:
+
+
+ + +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 QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
- Protected Member Functions inherited from QueueDescriptor
 ~QueueDescriptor ()=default
 
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 
+

Detailed Description

+
+

Definition at line 444 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 2143 of file WorkloadData.cpp.

+ +

References armnn::BFloat16, armnn::Float32, TensorInfo::GetDataType(), WorkloadInfo::m_InputTensorInfos, and WorkloadInfo::m_OutputTensorInfos.

+
2144 {
2145  const std::string descriptorName{"ConvertFp32ToBf16QueueDescriptor"};
2146 
2147  ValidateNumInputs(workloadInfo, descriptorName, 1);
2148  ValidateNumOutputs(workloadInfo, descriptorName, 1);
2149 
2150  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
2151  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
2152 
2153  if (inputTensorInfo.GetDataType() != DataType::Float32)
2154  {
2155  throw InvalidArgumentException(descriptorName + ": Input tensor type must be Float32.");
2156  }
2157 
2158  if (outputTensorInfo.GetDataType() != DataType::BFloat16)
2159  {
2160  throw InvalidArgumentException(descriptorName + ": Output tensor type must be BFloat16.");
2161  }
2162 
2163  ValidateTensorShapesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2164 }
+
std::vector< TensorInfo > m_InputTensorInfos
+
DataType GetDataType() const
Definition: Tensor.hpp:194
+
std::vector< TensorInfo > m_OutputTensorInfos
+ + + +
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1