Skip to content

Commit

Permalink
Increase tolarance for test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeheddes committed Sep 26, 2023
1 parent 628ee51 commit e511a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchhd/tests/basis_hv/test_circular_hv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e511a46

Please sign in to comment.