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 --- 20.02/_floating_point_converter_8hpp_source.xhtml | 119 ++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 20.02/_floating_point_converter_8hpp_source.xhtml (limited to '20.02/_floating_point_converter_8hpp_source.xhtml') diff --git a/20.02/_floating_point_converter_8hpp_source.xhtml b/20.02/_floating_point_converter_8hpp_source.xhtml new file mode 100644 index 0000000000..fa381e754f --- /dev/null +++ b/20.02/_floating_point_converter_8hpp_source.xhtml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + +ArmNN: include/armnnUtils/FloatingPointConverter.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
FloatingPointConverter.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <cstddef>
9 
10 namespace armnnUtils
11 {
12 
14 {
15 public:
16  /// Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer.
17  /// dstFloat16Buffer should be (numElements * 2) in size
18  static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer);
19 
20  static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer);
21 
22  // Converts a buffer of FP32 values to BFloat16, and stores in the given dstBFloat16Buffer.
23  static void ConvertFloat32ToBFloat16(const float* srcFloat32Buffer, size_t numElements, void* dstBFloat16Buffer);
24 
25  // Converts a buffer of BFloat16 to FP32 value, and stores in the given dstFloat32Buffer.
26  static void ConvertBFloat16ToFloat32(const void* srcBFloat16Buffer, size_t numElements, float* dstFloat32Buffer);
27 };
28 
29 } // namespace armnnUtils
static void ConvertBFloat16ToFloat32(const void *srcBFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
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.
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
static void ConvertFloat32ToBFloat16(const float *srcFloat32Buffer, size_t numElements, void *dstBFloat16Buffer)
+ + +
+
+ + + + -- cgit v1.2.1