Skip to content

Commit e9d3b66

Browse files
committed
minor
Signed-off-by: Kinjal Patel <kinjalpravin@nvidia.com>
1 parent 126570f commit e9d3b66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/gpu/torch/quantization/test_hadamard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_hadamard_transform(dim):
4343
assert torch.allclose(xxt_h, xxt, atol=0.05)
4444
x_h_fp32 = normalized_hadamard_transform(x, rotate_fp32=True)
4545
xxt_h_fp32 = x_h_fp32 @ x_h_fp32.T
46-
assert torch.allclose(xxt_h_fp32, xxt, atol=0.001)
46+
assert torch.allclose(xxt_h_fp32, xxt, atol=0.05)
4747

4848

4949
@pytest.mark.parametrize(
@@ -83,6 +83,6 @@ def test_kv_rotate(rotate_fp32):
8383
},
8484
):
8585
output_test1 = model(dummy_input)
86-
assert not torch.allclose(output_ref, output_test1, atol=0.001)
86+
assert not torch.allclose(output_ref, output_test1, atol=0.05)
8787

8888
mtq.unregister(SDPAAttention)

0 commit comments

Comments
 (0)