Skip to content

Commit 7a3239a

Browse files
authored
Update test_dataset.py
1 parent 638bea7 commit 7a3239a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/optim/utils/image/test_dataset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_image_cov_3_channels(self) -> None:
2828
]
2929
)
3030
self.assertEqual(list(test_output.shape), [3, 3])
31-
assertTensorAlmostEqual(self, test_output, expected_output, delta=0.0002)
31+
assertTensorAlmostEqual(self, test_output, expected_output, delta=0.001)
3232

3333
def test_image_cov_3_channels_batch_5(self) -> None:
3434
test_input = torch.cat(
@@ -51,7 +51,7 @@ def test_image_cov_3_channels_batch_5(self) -> None:
5151
]
5252
)
5353
self.assertEqual(list(test_output.shape), [3, 3])
54-
assertTensorAlmostEqual(self, test_output, expected_output, delta=0.0002)
54+
assertTensorAlmostEqual(self, test_output, expected_output, delta=0.001)
5555

5656
def test_image_cov_2_channels(self) -> None:
5757
test_input = torch.randn(1, 2, 5, 5)
@@ -111,7 +111,7 @@ def test_cov_matrix_to_klt(self) -> None:
111111
[-0.1749, -0.1056, 0.0124],
112112
]
113113
)
114-
assertTensorAlmostEqual(self, output_mtx, expected_mtx, delta=0.0003)
114+
assertTensorAlmostEqual(self, output_mtx, expected_mtx, delta=0.001)
115115

116116

117117
class TestDatasetKLTMatrix(BaseTest):
@@ -143,7 +143,7 @@ def create_tensor() -> torch.Tensor:
143143
[-0.0978, -0.0006, 0.0003],
144144
]
145145
)
146-
assertTensorAlmostEqual(self, klt_transform, expected_mtx, delta=0.00032)
146+
assertTensorAlmostEqual(self, klt_transform, expected_mtx, delta=0.001)
147147

148148
def test_dataset_klt_matrix_randn(self) -> None:
149149
num_tensors = 100

0 commit comments

Comments
 (0)