Skip to content

Commit a3f55b1

Browse files
committed
add expand=True parameterization
1 parent ad3b2a9 commit a3f55b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/test_transforms_v2_refactored.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,8 +1512,7 @@ def test_transform(self, input_type, device):
15121512
@pytest.mark.parametrize(
15131513
"interpolation", [transforms.InterpolationMode.NEAREST, transforms.InterpolationMode.BILINEAR]
15141514
)
1515-
# TODO: investigate why expand=True leads to different shapes between PIL and tensor
1516-
@pytest.mark.parametrize("expand", [False])
1515+
@pytest.mark.parametrize("expand", [False, True])
15171516
@pytest.mark.parametrize("fill", CORRECTNESS_FILLS)
15181517
def test_functional_image_correctness(self, angle, center, interpolation, expand, fill):
15191518
image = make_input(torch.Tensor, dtype=torch.uint8, device="cpu")
@@ -1534,8 +1533,7 @@ def test_functional_image_correctness(self, angle, center, interpolation, expand
15341533
@pytest.mark.parametrize(
15351534
"interpolation", [transforms.InterpolationMode.NEAREST, transforms.InterpolationMode.BILINEAR]
15361535
)
1537-
# TODO: investigate why expand=True leads to different shapes between PIL and tensor
1538-
@pytest.mark.parametrize("expand", [False])
1536+
@pytest.mark.parametrize("expand", [False, True])
15391537
@pytest.mark.parametrize("fill", CORRECTNESS_FILLS)
15401538
@pytest.mark.parametrize("seed", list(range(5)))
15411539
def test_transform_image_correctness(self, center, interpolation, expand, fill, seed):

0 commit comments

Comments
 (0)