From 8580e5da782e0936fbd629d3841eb726ffe46291 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 13 Feb 2023 17:43:49 +0000 Subject: [PATCH] Tighter test against PIL on resize --- test/test_functional_tensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_functional_tensor.py b/test/test_functional_tensor.py index 58ba98bdf74..37cdb9f9881 100644 --- a/test/test_functional_tensor.py +++ b/test/test_functional_tensor.py @@ -501,7 +501,7 @@ def test_resize(device, dt, size, max_size, interpolation): resized_tensor_f = resized_tensor_f.to(torch.float) # Pay attention to high tolerance for MAE - _assert_approx_equal_tensor_to_pil(resized_tensor_f, resized_pil_img, tol=8.0) + _assert_approx_equal_tensor_to_pil(resized_tensor_f, resized_pil_img, tol=3.0) if isinstance(size, int): script_size = [