Skip to content

Commit

Permalink
*fix test bug (wrong accuracy threshold).
Browse files Browse the repository at this point in the history
  • Loading branch information
ermig1979 committed Dec 31, 2024
1 parent fa99ca1 commit 2533246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Test/TestResize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace Test
TEST_EXECUTE_AT_LEAST_MIN_TIME(f2.Call(src, dst2, channels, type, method));

if (type == SimdResizeChannelFloat)
result = result && Compare(dst1, dst2, EPS, true, 64, DifferenceAbsolute);
result = result && Compare(dst1, dst2, EPS, true, 64, DifferenceBoth);
else if (type == SimdResizeChannelBf16)
{
View dst32f1(dstW, dstH, View::Float), dst32f2(dstW, dstH, View::Float);
Expand All @@ -189,7 +189,7 @@ namespace Test
SimdBFloat16ToFloat32(dst1.Row<uint16_t>(row), dstW, dst32f1.Row<float>(row));
SimdBFloat16ToFloat32(dst2.Row<uint16_t>(row), dstW, dst32f2.Row<float>(row));
}
result = result && Compare(dst32f1, dst32f2, EPS*8.0f, true, 64, DifferenceAbsolute);
result = result && Compare(dst32f1, dst32f2, EPS*8.0f, true, 64, DifferenceBoth);
}
else if(type == SimdResizeChannelShort)
result = result && Compare(dst1, dst2, 1, true, 64);
Expand Down

0 comments on commit 2533246

Please sign in to comment.