Home
last modified time | relevance | path

Searched refs:fpRange (Results 1 – 2 of 2) sorted by relevance

/frameworks/ml/nn/runtime/test/
DTestUnknownDimensions.cpp100 float fpRange = fpAtol + fpRtol * std::abs(expected); in CompareResults() local
102 EXPECT_NEAR(expected, actual, fpRange); in CompareResults()
104 if (std::abs(expected - actual) > fpRange) { in CompareResults()
135 float fpRange = fpAtol + fpRtol * std::abs(static_cast<float>(expected)); in CompareResults() local
137 EXPECT_NEAR(expected, actual, fpRange); in CompareResults()
139 if (std::abs(static_cast<float>(expected - actual)) > fpRange) { in CompareResults()
/frameworks/ml/nn/tools/test_generator/include/
DTestHarness.h292 float fpRange = fpAtol + fpRtol * std::abs(expected);
294 EXPECT_NEAR(expected, actual, fpRange);
296 if (std::abs(expected - actual) > fpRange) {
331 float fpRange = fpAtol + fpRtol * std::abs(static_cast<float>(expected));
333 EXPECT_NEAR(expected, actual, fpRange);
335 if (std::abs(static_cast<float>(expected - actual)) > fpRange) {