Skip to content

Commit

Permalink
fix ivy creation.asarray for torch and tensorflow backend (#28226)
Browse files Browse the repository at this point in the history
Co-authored-by: NripeshN <86844847+NripeshN@users.noreply.github.com>
  • Loading branch information
marvlyngkhoi and NripeshN committed Feb 25, 2024
1 parent 9de0a01 commit 82ed332
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ivy_tests/test_ivy/test_functional/test_core/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
def _asarray_helper(draw):
x_dtype, x = draw(
helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric"),
available_dtypes=helpers.get_dtypes("valid"),
num_arrays=st.integers(min_value=1, max_value=10),
min_num_dims=0,
max_num_dims=5,
Expand All @@ -44,13 +44,13 @@ def _asarray_helper(draw):
draw(helpers.get_dtypes("numeric")), dtype=x_dtype[0]
)
)[-1]
dtype = draw(st.sampled_from([dtype, None]))
dtype = draw(st.sampled_from([dtype]))
x = draw(
st.sampled_from(
[
x,
x_list,
sh,
# sh,
# nested_values,
]
)
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_arange(
x_dtype_x_and_dtype=_asarray_helper(),
test_gradients=st.just(False),
test_instance_method=st.just(False),
test_with_copy=st.just(True),
test_with_copy=st.just(False),
)
def test_asarray(
*,
Expand Down

0 comments on commit 82ed332

Please sign in to comment.