From 8bec5c4b6eae8bb7bcf4d58c6f6739bb5bbc017f Mon Sep 17 00:00:00 2001 From: viknesh-ai Date: Sat, 22 Aug 2026 15:56:10 +0530 Subject: [PATCH] Migrate tests/test_gpu_aampdist.py from npt.assert_almost_equal to npt.assert_allclose --- tests/test_gpu_aampdist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_gpu_aampdist.py b/tests/test_gpu_aampdist.py index 302b08619..cd81699fa 100644 --- a/tests/test_gpu_aampdist.py +++ b/tests/test_gpu_aampdist.py @@ -44,6 +44,6 @@ def test_gpu_aampdist(T_A, T_B): m = 3 for p in [1.0, 2.0, 3.0]: ref_mpdist = naive.aampdist(T_A, T_B, m, p=p) - comp_mpdist = gpu_aampdist(T_A, T_B, m, p=p) + cmp_mpdist = gpu_aampdist(T_A, T_B, m, p=p) - npt.assert_almost_equal(ref_mpdist, comp_mpdist) + npt.assert_allclose(cmp_mpdist, ref_mpdist, atol=1.5e-07)