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 --- ...selective_comparer_3_01_t_00_01false_01_4.xhtml | 176 +++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 21.02/struct_selective_comparer_3_01_t_00_01false_01_4.xhtml (limited to '21.02/struct_selective_comparer_3_01_t_00_01false_01_4.xhtml') diff --git a/21.02/struct_selective_comparer_3_01_t_00_01false_01_4.xhtml b/21.02/struct_selective_comparer_3_01_t_00_01false_01_4.xhtml new file mode 100644 index 0000000000..9e48cb118c --- /dev/null +++ b/21.02/struct_selective_comparer_3_01_t_00_01false_01_4.xhtml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + +ArmNN: SelectiveComparer< T, false > Struct Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SelectiveComparer< T, false > Struct Template Reference
+
+
+ +

#include <TensorHelpers.hpp>

+ + + + +

+Static Public Member Functions

static bool Compare (T a, T b)
 
+

Detailed Description

+

template<typename T>
+struct SelectiveComparer< T, false >

+ + +

Definition at line 35 of file TensorHelpers.hpp.

+

Member Function Documentation

+ +

◆ Compare()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
static bool Compare (a,
b 
)
+
+inlinestatic
+
+ +

Definition at line 37 of file TensorHelpers.hpp.

+ +

References g_FloatCloseToZeroTolerance, and armnnUtils::within_percentage_tolerance().

+
38  {
39  // If a or b is zero, percent_tolerance does an exact match, so compare to a small, constant tolerance instead.
40  if (a == 0.0f || b == 0.0f)
41  {
42  return std::abs(a - b) <= g_FloatCloseToZeroTolerance;
43  }
44 
45  if (std::isinf(a) && a == b)
46  {
47  return true;
48  }
49 
50  if (std::isnan(a) && std::isnan(b))
51  {
52  return true;
53  }
54 
55  // For unquantized floats we use a tolerance of 1%.
57  }
constexpr float g_FloatCloseToZeroTolerance
+
bool within_percentage_tolerance(float a, float b, float tolerancePercent=1.0f)
Compare two floats and return true if their values are within a specified tolerance of each other...
+
+
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + -- cgit v1.2.1