Skip to content

Commit 2fe3ce3

Browse files
committed
reduced tolerance for identity matrix test
Signed-off-by: mikail <mkhona@nvidia.com>
1 parent e5b5ba5 commit 2fe3ce3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_psgd_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_small_skew_symmetric_matrix(self) -> None:
191191
actual_norm = torch.linalg.matrix_norm(A, ord=2)
192192

193193
# Bound should be <= actual norm
194-
self.assertLessEqual(bound.item(), actual_norm.item() + 1e-4)
194+
self.assertLessEqual(bound.item(), actual_norm.item() + 1e-3)
195195
# Bound should be positive for non-zero matrix
196196
self.assertGreater(bound.item(), 0.0)
197197

@@ -206,7 +206,7 @@ def test_identity_based_skew_matrix(self) -> None:
206206
actual_norm = torch.linalg.matrix_norm(A, ord=2)
207207

208208
# Bound should be <= actual norm
209-
self.assertLessEqual(bound.item(), actual_norm.item() + 1e-5)
209+
self.assertLessEqual(bound.item(), actual_norm.item() + 1e-4)
210210

211211
@parameterized.product(
212212
dtype=[torch.float32, torch.float64],

0 commit comments

Comments
 (0)