ArmNN
 20.05
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 26 of file TensorHelpers.hpp.

Member Function Documentation

◆ Compare()

static bool Compare ( a,
b 
)
inlinestatic

Definition at line 28 of file TensorHelpers.hpp.

Referenced by SelectiveCompare().

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

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