From 549b9600a6eaf0727fa084465a75f173edf8f381 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 24 May 2022 11:32:07 +0100 Subject: Update 22.05 Doxygen Docs after updates to main Readme Signed-off-by: Nikhil Raj Change-Id: I56711772406a41ff81fa136a5fb6c59c9b9cf504 --- ...1_1optimizations_1_1_float32_to_b_float16.xhtml | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 22.05/structarmnn_1_1optimizations_1_1_float32_to_b_float16.xhtml (limited to '22.05/structarmnn_1_1optimizations_1_1_float32_to_b_float16.xhtml') diff --git a/22.05/structarmnn_1_1optimizations_1_1_float32_to_b_float16.xhtml b/22.05/structarmnn_1_1optimizations_1_1_float32_to_b_float16.xhtml new file mode 100644 index 0000000000..9dacf396d4 --- /dev/null +++ b/22.05/structarmnn_1_1optimizations_1_1_float32_to_b_float16.xhtml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + +ArmNN: Float32ToBFloat16 Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Float32ToBFloat16 Struct Reference
+
+
+ +

#include <ConvertConstants.hpp>

+ + + + +

+Static Public Member Functions

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

Detailed Description

+
+

Definition at line 64 of file ConvertConstants.hpp.

+

Member Function Documentation

+ +

◆ Func()

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

Definition at line 66 of file ConvertConstants.hpp.

+ +

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

+
67  {
68  const TensorInfo& info = handle->GetTensorInfo();
69 
70  if (info.GetDataType() == DataType::Float32)
71  {
72  std::vector<BFloat16> newValues(info.GetNumElements());
73 
75  info.GetNumElements(),
76  newValues.data());
77 
78  TensorInfo newInfo(info.GetShape(), DataType::BFloat16, 0.0f, 0, true);
79  ConstTensor newInput(newInfo, newValues);
80  handle.reset(new ScopedTensorHandle(newInput));
81  }
82  }
+
static void ConvertFloat32ToBFloat16(const float *srcFloat32Buffer, size_t numElements, void *dstBFloat16Buffer)
+ + +
+
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + -- cgit v1.2.1