From e511a46f3c1079b11a010db825dee83d85183517 Mon Sep 17 00:00:00 2001 From: Mike Heddes Date: Tue, 26 Sep 2023 13:55:10 -0700 Subject: [PATCH] Increase tolarance for test --- torchhd/tests/basis_hv/test_circular_hv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchhd/tests/basis_hv/test_circular_hv.py b/torchhd/tests/basis_hv/test_circular_hv.py index 7832e21c..a0de349e 100644 --- a/torchhd/tests/basis_hv/test_circular_hv.py +++ b/torchhd/tests/basis_hv/test_circular_hv.py @@ -114,7 +114,7 @@ def test_value(self, dtype, vsa): elif vsa == "FHRR": mag = hv.abs() - assert torch.allclose(mag, torch.tensor(1.0, dtype=mag.dtype)) + assert torch.allclose(mag, torch.tensor(1.0, dtype=mag.dtype), rtol=0.0001, atol=0.0001) elif vsa == "BSBC": assert torch.all((hv >= 0) | (hv < 1024)).item()