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 --- ...rence_2workloads_2_dequantize_8cpp_source.xhtml | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 21.02/backends_2reference_2workloads_2_dequantize_8cpp_source.xhtml (limited to '21.02/backends_2reference_2workloads_2_dequantize_8cpp_source.xhtml') diff --git a/21.02/backends_2reference_2workloads_2_dequantize_8cpp_source.xhtml b/21.02/backends_2reference_2workloads_2_dequantize_8cpp_source.xhtml new file mode 100644 index 0000000000..b7e9482521 --- /dev/null +++ b/21.02/backends_2reference_2workloads_2_dequantize_8cpp_source.xhtml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/Dequantize.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Dequantize.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "Dequantize.hpp"
7 
9 
10 namespace armnn
11 {
12 
13 void Dequantize(Decoder<float>& inputDecoder,
14  Encoder<float>& outputEncoder,
15  const TensorInfo& inputInfo,
16  const TensorInfo& outputInfo)
17 {
18  IgnoreUnused(outputInfo);
19  ARMNN_ASSERT(inputInfo.GetNumElements() == outputInfo.GetNumElements());
20  for (unsigned int i = 0; i < inputInfo.GetNumElements(); i++)
21  {
22  // inputDecoder.Get() dequantizes the data element from whatever
23  // type is given by inputInfo to fp32 (If MakeDecoder supports that dequantization)
24  // outputEncoder.Set() transforms the data element to whatever type is
25  // given by outputInfo (if MakeEncoder supports that transformation)
26  outputEncoder.Set(inputDecoder.Get());
27  ++outputEncoder;
28  ++inputDecoder;
29  }
30 }
31 
32 } // armnn namespace
+
float Dequantize(QuantizedType value, float scale, int32_t offset)
Dequantize an 8-bit data type into a floating point data type.
Definition: TypesUtils.cpp:46
+ + +
virtual void Set(IType right)=0
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+
void IgnoreUnused(Ts &&...)
+
virtual IType Get() const =0
+
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:192
+ +
+
+ + + + -- cgit v1.2.1