Skip to content

Commit

Permalink
(fix): added the _asarray_to_native_arrays_and_back attribute to th…
Browse files Browse the repository at this point in the history
…e `ivy._asarray_to_native_arrays_and_back` decorator to be able to identify whether ivy.asarray has been decorated with the function
  • Loading branch information
YushaArif99 committed Feb 7, 2024
1 parent dc7be7e commit 4c1a7ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivy/functional/ivy/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def _asarray_to_native_arrays_and_back_wrapper(*args, dtype=None, **kwargs):
dtype = ivy.default_dtype(dtype=dtype, as_native=True)
return to_ivy(fn(*new_args, dtype=dtype, **kwargs))

_asarray_to_native_arrays_and_back_wrapper._asarray_to_native_arrays_and_back = True
return _asarray_to_native_arrays_and_back_wrapper


Expand Down

0 comments on commit 4c1a7ed

Please sign in to comment.