From d5d43d82c0137e08553e44345c609cdd1a7931c7 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 17 Jun 2022 13:24:58 +0100 Subject: Update Doxygen for 22.05 patch release * Pooling3D added to tfLite delegate * Available in tag 22.05.01 Signed-off-by: Nikhil Raj Change-Id: I8d605bba4e87d30baa2c6d7b338c78a4400dc021 --- ...n_1_1optimizations_1_1_float32_to_float16.xhtml | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 22.05.01/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml (limited to '22.05.01/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml') diff --git a/22.05.01/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml b/22.05.01/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml new file mode 100644 index 0000000000..f4f77b4a3c --- /dev/null +++ b/22.05.01/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + +ArmNN: Float32ToFloat16 Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05.01 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Float32ToFloat16 Struct Reference
+
+
+ +

#include <ConvertConstants.hpp>

+ + + + +

+Static Public Member Functions

static void Func (std::shared_ptr< ConstTensorHandle > &handle)
 
+

Detailed Description

+
+

Definition at line 85 of file ConvertConstants.hpp.

+

Member Function Documentation

+ +

◆ Func()

+ +
+
+ + + + + +
+ + + + + + + + +
static void Func (std::shared_ptr< ConstTensorHandle > & handle)
+
+inlinestatic
+
+ +

Definition at line 87 of file ConvertConstants.hpp.

+ +

References FloatingPointConverter::ConvertFloat32To16(), armnn::Float16, armnn::Float32, TensorInfo::GetDataType(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), and armnn::info.

+
88  {
89  const TensorInfo& info = handle->GetTensorInfo();
90 
91  if (info.GetDataType() == DataType::Float32)
92  {
93  std::vector<Half> newValues(info.GetNumElements());
94 
95  armnnUtils::FloatingPointConverter::ConvertFloat32To16(handle->GetConstTensor<float>(),
96  info.GetNumElements(),
97  newValues.data());
98 
99  TensorInfo newInfo(info.GetShape(), DataType::Float16, 0.0f, 0, true);
100  ConstTensor newInput(newInfo, newValues);
101  handle.reset(new ScopedTensorHandle(newInput));
102  }
103  }
static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer)
Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer.
+ + + +
+
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + -- cgit v1.2.1