ArmNN
 20.11
SelectiveComparer< T, isQuantized > Struct Template Reference

#include <TensorHelpers.hpp>

Static Public Member Functions

static bool Compare (T a, T b)
 

Detailed Description

template<typename T, bool isQuantized = true>
struct SelectiveComparer< T, isQuantized >

Definition at line 25 of file TensorHelpers.hpp.

Member Function Documentation

◆ Compare()

static bool Compare ( a,
b 
)
inlinestatic

Definition at line 27 of file TensorHelpers.hpp.

Referenced by SelectiveCompare().

28  {
29  return (std::max(a, b) - std::min(a, b)) <= 1;
30  }

The documentation for this struct was generated from the following file: