From 6807b0e1931e1c297908a89c576e614e301cc0ac Mon Sep 17 00:00:00 2001 From: Abdullah Sabry Date: Fri, 12 Jul 2024 20:45:58 +0300 Subject: [PATCH] fix(torch-frontend): fix failing test for torch.nn.functional.pad frontend (#27206) Co-authored-by: Sam-Armstrong --- .../test_torch/test_nn/test_functional/test_vision_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_vision_functions.py b/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_vision_functions.py index b2885c9b5d4fb..74ff174309488 100644 --- a/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_vision_functions.py +++ b/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_vision_functions.py @@ -68,7 +68,7 @@ def _pad_generator(draw, shape, mode): max_pad_value = shape[i] - 1 pad = pad + draw( st.tuples( - st.integers(min_value=-3, max_value=max(0, max_pad_value)), + st.integers(min_value=0, max_value=max(0, max_pad_value)), st.integers(min_value=-3, max_value=max(0, max_pad_value)), ) )