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_float32_to_float16.xhtml | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 20.02/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml (limited to '20.02/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml') diff --git a/20.02/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml b/20.02/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml new file mode 100644 index 0000000000..416fd0309b --- /dev/null +++ b/20.02/structarmnn_1_1optimizations_1_1_float32_to_float16.xhtml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + +ArmNN: Float32ToFloat16 Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Float32ToFloat16 Struct Reference
+
+
+ +

#include <ConvertConstants.hpp>

+ + + + +

+Static Public Member Functions

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

Detailed Description

+
+

Definition at line 44 of file ConvertConstants.hpp.

+

Member Function Documentation

+ +

◆ Func()

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

Definition at line 46 of file ConvertConstants.hpp.

+ +

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

+
47  {
48  const TensorInfo& info = handle->GetTensorInfo();
49 
50  if (info.GetDataType() == DataType::Float32)
51  {
52  std::vector<Half> newValues(info.GetNumElements());
53 
55  info.GetNumElements(),
56  newValues.data());
57 
58  TensorInfo newInfo(info.GetShape(), DataType::Float16);
59  ConstTensor newInput(newInfo, newValues);
60  handle.reset(new ScopedCpuTensorHandle(newInput));
61  }
62  }
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