Unverified Commit a2189d6c authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Avoid / silence warnings in refactored tests (#7905)

parent 25ec3f26
......@@ -821,7 +821,7 @@ class TestResize:
# Non-regression test for https://github.com/pytorch/vision/issues/7667
input = make_image_tensor(self.INPUT_SIZE, dtype=torch.float16)
output = F.resize_image(input, size=self.OUTPUT_SIZES[0])
output = F.resize_image(input, size=self.OUTPUT_SIZES[0], antialias=True)
assert output.dtype is torch.float16
assert (output.round() - output).abs().sum() > 0
......@@ -1375,6 +1375,7 @@ class TestVerticalFlip:
assert_equal(output, input)
@pytest.mark.filterwarnings("ignore:The provided center argument has no effect")
class TestRotate:
_EXHAUSTIVE_TYPE_AFFINE_KWARGS = dict(
# float, int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment