mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
arm64 fix: Replaced float value strong equal checks with check with tolerance.
This commit is contained in:
parent
fcdd69fd97
commit
009860e98a
@ -1297,7 +1297,11 @@ TEST_P(PhaseTest, AccuracyTest)
|
|||||||
// Comparison //////////////////////////////////////////////////////////////
|
// Comparison //////////////////////////////////////////////////////////////
|
||||||
// FIXME: use a comparison functor instead (after enabling OpenCL)
|
// FIXME: use a comparison functor instead (after enabling OpenCL)
|
||||||
{
|
{
|
||||||
|
#if defined(__aarch64__) || defined(__arm__)
|
||||||
|
EXPECT_NEAR(0, cvtest::norm(out_mat_ocv, out_mat_gapi, NORM_INF), 4e-6);
|
||||||
|
#else
|
||||||
EXPECT_EQ(0, cvtest::norm(out_mat_ocv, out_mat_gapi, NORM_INF));
|
EXPECT_EQ(0, cvtest::norm(out_mat_ocv, out_mat_gapi, NORM_INF));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user