Skip to content

Commit 6e84c7a

Browse files
authored
Update test/test_prototype_transforms.py
1 parent 2b7cae6 commit 6e84c7a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_prototype_transforms.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ def input_expected_image_tensor(self, p, dtype=torch.float32):
197197
input = torch.tensor([[[0, 1], [0, 1]], [[1, 0], [1, 0]]], dtype=dtype)
198198
expected = torch.tensor([[[1, 0], [1, 0]], [[0, 1], [0, 1]]], dtype=dtype)
199199

200-
if p == 1.0:
201-
return input, expected
202-
return input, input
200+
return input, expected if p == 1 else input
203201

204202
def test_simple_tensor(self, p):
205203
input, expected = self.input_expected_image_tensor(p)

0 commit comments

Comments
 (0)