Skip to content

Commit

Permalink
fix: fix recursion in test_torch_fold
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Oct 25, 2023
1 parent d038b48 commit 85b428c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from hypothesis import strategies as st, assume

# local
import ivy
import ivy_tests.test_ivy.helpers as helpers
from ivy_tests.test_ivy.helpers import handle_frontend_test
from ivy_tests.test_ivy.test_functional.test_nn.test_layers import (
Expand Down Expand Up @@ -44,7 +43,7 @@ def _fold_helper(draw, dim=2):
)
)
if vals.shape[0] == 1: # un-batched inputs are also supported
vals = draw(st.one_of(st.just(vals), st.just(ivy.squeeze(vals, axis=0))))
vals = draw(st.sampled_from([vals, vals[0]]))
return dtype, vals, kernel_size, output_shape, dilation, stride, padding


Expand Down

0 comments on commit 85b428c

Please sign in to comment.