Skip to content

Commit b5651d1

Browse files
authored
remove some leftover comments from development (#23)
* remove test_2d comment * fix text in 3d test
1 parent eb6c388 commit b5651d1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tests/test_image_interpolation_2d.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def test_insert_into_image_2d_type_consistency(dtype):
164164
image = torch.rand((4, 4), dtype=dtype)
165165
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 2)))
166166
values = torch.rand(size=(3, 4), dtype=dtype)
167-
# cast the dtype to corresponding float for weights
168167
weights = torch.zeros_like(image, dtype=torch.float64)
169168

170169
for mode in ['bilinear', 'nearest']:
@@ -183,7 +182,6 @@ def test_insert_into_image_3d_type_error():
183182
image = torch.rand((4, 4), dtype=torch.complex64)
184183
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 2)))
185184
values = torch.rand(size=(3, 4), dtype=torch.complex128)
186-
# cast the dtype to corresponding float for weights
187185
with pytest.raises(ValueError):
188186
insert_into_image_2d(
189187
values,

tests/test_image_interpolation_3d.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def test_insert_into_image_2d_type_consistency(dtype):
165165
image = torch.rand((4, 4, 4), dtype=dtype)
166166
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 5, 3)))
167167
values = torch.rand(size=(3, 4, 5), dtype=dtype)
168-
# cast the dtype to corresponding float for weights
169168
weights = torch.zeros_like(image, dtype=torch.float64)
170169

171170
for mode in ['bilinear', 'nearest']:
@@ -184,7 +183,6 @@ def test_insert_into_image_3d_type_error():
184183
image = torch.rand((4, 4, 4), dtype=torch.complex64)
185184
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 5, 3)))
186185
values = torch.rand(size=(3, 4, 5), dtype=torch.complex128)
187-
# cast the dtype to corresponding float for weights
188186
with pytest.raises(ValueError):
189187
insert_into_image_3d(
190188
values,

0 commit comments

Comments
 (0)