Merge pull request #19128 from asmorkalov:as/gapi_phase_tolerance

This commit is contained in:
Alexander Alekhin 2020-12-18 13:43:07 +00:00
commit 3e9158acd6

View File

@ -1297,7 +1297,11 @@ TEST_P(PhaseTest, AccuracyTest)
// Comparison //////////////////////////////////////////////////////////////
// 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));
#endif
}
}