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

#include <ConvertConstants.hpp>

+ + + + +

+Static Public Member Functions

static void Func (std::unique_ptr< ScopedCpuTensorHandle > &handle)
 
+

Detailed Description

+
+

Definition at line 23 of file ConvertConstants.hpp.

+

Member Function Documentation

+ +

◆ Func()

+ +
+
+ + + + + +
+ + + + + + + + +
static void Func (std::unique_ptr< ScopedCpuTensorHandle > & handle)
+
+inlinestatic
+
+ +

Definition at line 25 of file ConvertConstants.hpp.

+ +

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

+
26  {
27  const TensorInfo& info = handle->GetTensorInfo();
28 
29  if (info.GetDataType() == DataType::Float16)
30  {
31  std::vector<float> newValues(info.GetNumElements());
32 
34  info.GetNumElements(),
35  newValues.data());
36 
37  TensorInfo newInfo(info.GetShape(), DataType::Float32);
38  ConstTensor newInput(newInfo, newValues);
39  handle.reset(new ScopedCpuTensorHandle(newInput));
40  }
41  }
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+ + +
half_float::half Half
Definition: Half.hpp:16
+
+
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + -- cgit v1.2.1