Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c004499

Browse files
fix: test_torch_avg_pool2d (#28911)
1 parent ac26dfa commit c004499

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_pooling_functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def test_torch_avg_pool1d(
263263
ceil_mode=st.booleans(),
264264
count_include_pad=st.booleans(),
265265
test_with_out=st.just(False),
266+
number_positional_args=st.just(1),
266267
)
267268
def test_torch_avg_pool2d(
268269
dtype_x_k_s,
@@ -292,8 +293,8 @@ def test_torch_avg_pool2d(
292293
ceil_mode=ceil_mode,
293294
count_include_pad=count_include_pad,
294295
divisor_override=None,
295-
atol=1e-2,
296-
rtol=1e-2,
296+
atol=1e-1 if backend_fw == "jax" else 1e-4,
297+
rtol=1e-1 if backend_fw == "jax" else 1e-4,
297298
)
298299

299300

0 commit comments

Comments
 (0)