Skip to content

Commit

Permalink
[fbsync] fix elastic tests (#7841)
Browse files Browse the repository at this point in the history
Reviewed By: matteobettini

Differential Revision: D48642293

fbshipit-source-id: 8e14e1e103ec518ff13e7d59e514120df9d74f1e
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Aug 25, 2023
1 parent bdc096b commit 1b48111
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_transforms_v2_refactored.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ def test_kernel_image_tensor(self, param, value, dtype, device):
image = make_image_tensor(dtype=dtype, device=device)

check_kernel(
F.elastic_image_tensor,
F.elastic_image,
image,
displacement=self._make_displacement(image),
**{param: value},
Expand Down Expand Up @@ -2320,9 +2320,9 @@ def test_functional(self, make_input):
@pytest.mark.parametrize(
("kernel", "input_type"),
[
(F.elastic_image_tensor, torch.Tensor),
(F.elastic_image_pil, PIL.Image.Image),
(F.elastic_image_tensor, datapoints.Image),
(F.elastic_image, torch.Tensor),
(F._elastic_image_pil, PIL.Image.Image),
(F.elastic_image, datapoints.Image),
(F.elastic_bounding_boxes, datapoints.BoundingBoxes),
(F.elastic_mask, datapoints.Mask),
(F.elastic_video, datapoints.Video),
Expand Down

0 comments on commit 1b48111

Please sign in to comment.