Skip to content

Commit 20f84bf

Browse files
authored
Tighter test against PIL on resize (#7233)
1 parent d744da9 commit 20f84bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_functional_tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def test_resize(device, dt, size, max_size, interpolation):
524524
resized_tensor_f = resized_tensor_f.to(torch.float)
525525

526526
# Pay attention to high tolerance for MAE
527-
_assert_approx_equal_tensor_to_pil(resized_tensor_f, resized_pil_img, tol=8.0)
527+
_assert_approx_equal_tensor_to_pil(resized_tensor_f, resized_pil_img, tol=3.0)
528528

529529
if isinstance(size, int):
530530
script_size = [size]

0 commit comments

Comments
 (0)