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

#include <WorkloadData.hpp>

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

Detailed Description

+
+

Definition at line 415 of file WorkloadData.hpp.

+

Member Function Documentation

+ +

◆ Validate()

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

Definition at line 2019 of file WorkloadData.cpp.

+ +

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

+
2020 {
2021  const std::string descriptorName{"ConvertFp32ToFp16QueueDescriptor"};
2022 
2023  ValidateNumInputs(workloadInfo, descriptorName, 1);
2024  ValidateNumOutputs(workloadInfo, descriptorName, 1);
2025 
2026  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
2027  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
2028 
2029  if (inputTensorInfo.GetDataType() != DataType::Float32)
2030  {
2031  throw InvalidArgumentException(descriptorName + ": Input tensor type must be Float32.");
2032  }
2033 
2034  if (outputTensorInfo.GetDataType() != DataType::Float16)
2035  {
2036  throw InvalidArgumentException(descriptorName + ": Output tensor type must be Float16.");
2037  }
2038 
2039  ValidateTensorShapesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output");
2040 }
+
std::vector< TensorInfo > m_InputTensorInfos
+
DataType GetDataType() const
Definition: Tensor.hpp:95
+ +
std::vector< TensorInfo > m_OutputTensorInfos
+ + +
+
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + -- cgit v1.2.1