Skip to content

Commit

Permalink
fix: fixed frontend test for torch.Tensor.repeat (ivy-llc#28583)
Browse files Browse the repository at this point in the history
by putting a limit on array max dims and max size
  • Loading branch information
ZenithFlux authored Mar 16, 2024
1 parent dc171be commit e0791d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,15 @@ def _repeat_helper(draw):
)
)

repeats = draw(st.lists(st.integers(min_value=1, max_value=5), min_size=len(shape)))
MAX_NUMPY_DIMS = 32
repeats = draw(
st.lists(
st.integers(min_value=1, max_value=5),
min_size=len(shape),
max_size=MAX_NUMPY_DIMS,
)
)
assume(np.prod(repeats) * np.prod(shape) <= 2**28)
return input_dtype, x, repeats


Expand Down

0 comments on commit e0791d1

Please sign in to comment.