Skip to content

Commit 86621f9

Browse files
authored
Apply suggestion from @ericspod
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent bee416e commit 86621f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/metrics/test_ssim_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_2d_gaussian(self):
3232
metric(preds, target)
3333
result = metric.aggregate()
3434
expected_value = 0.045415
35-
self.assertTrue(expected_value - result.item() < 0.000001)
35+
self.assertTrue(abs(expected_value - result.item()) < 0.000001)
3636

3737
def test_2d_uniform(self):
3838
set_determinism(0)

0 commit comments

Comments
 (0)