MLIR: impl::MemRefDataVerifier< T > Struct Template Reference (original) (raw)

Verify the result of two computations are equivalent up to a small numerical error and return the number of errors. More...

#include "[mlir/ExecutionEngine/RunnerUtils.h](RunnerUtils%5F8h%5Fsource.html)"

Public Member Functions
bool verifyElem (double actual, double expected)
bool verifyElem (float actual, float expected)
Static Public Member Functions
static bool verifyRelErrorSmallerThan (T actual, T expected, T epsilon)
Verify the relative difference of the values is smaller than epsilon. More...
static bool verifyElem (T actual, T expected)
Verify the values are equivalent (integers) or are close (floating-point). More...
static int64_t verify (std::ostream &os, T *actualBasePtr, T *expectedBasePtr, int64_t dim, int64_t offset, const int64_t *sizes, const int64_t *strides, int64_t &printCounter)
Verify the data element-by-element and return the number of errors. More...
Static Public Attributes
static constexpr int printLimit = 10
Maximum number of errors printed by the verifier. More...

template

struct impl::MemRefDataVerifier< T >

Verify the result of two computations are equivalent up to a small numerical error and return the number of errors.

Definition at line 245 of file RunnerUtils.h.

verify()

template

int64_t impl::MemRefDataVerifier< T >::verify ( std::ostream & os, T * actualBasePtr, T * expectedBasePtr, int64_t dim, int64_t offset, const int64_t * sizes, const int64_t * strides, int64_t & printCounter ) static

verifyElem() [1/3]

verifyElem() [2/3]

verifyElem() [3/3]

Verify the values are equivalent (integers) or are close (floating-point).

Definition at line 273 of file RunnerUtils.h.

verifyRelErrorSmallerThan()

printLimit

Maximum number of errors printed by the verifier.

Definition at line 247 of file RunnerUtils.h.


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