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_1optimizations_1_1_b_float16_to_float32.xhtml | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 21.02/structarmnn_1_1optimizations_1_1_b_float16_to_float32.xhtml (limited to '21.02/structarmnn_1_1optimizations_1_1_b_float16_to_float32.xhtml') diff --git a/21.02/structarmnn_1_1optimizations_1_1_b_float16_to_float32.xhtml b/21.02/structarmnn_1_1optimizations_1_1_b_float16_to_float32.xhtml new file mode 100644 index 0000000000..f7d2cf640d --- /dev/null +++ b/21.02/structarmnn_1_1optimizations_1_1_b_float16_to_float32.xhtml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + +ArmNN: BFloat16ToFloat32 Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
BFloat16ToFloat32 Struct Reference
+
+
+ +

#include <ConvertConstants.hpp>

+ + + + +

+Static Public Member Functions

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

Detailed Description

+
+

Definition at line 24 of file ConvertConstants.hpp.

+

Member Function Documentation

+ +

◆ Func()

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

Definition at line 26 of file ConvertConstants.hpp.

+ +

References armnn::BFloat16, FloatingPointConverter::ConvertBFloat16ToFloat32(), armnn::Float32, TensorInfo::GetDataType(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), and armnn::info.

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