Skip to content

Commit

Permalink
fix func_wrapper.py: removing the conditional for avoiding conversion…
Browse files Browse the repository at this point in the history
… to native arrays when `array_mode=True`. This was causing `ivy.Arrays` to be passed to the backend impl.
  • Loading branch information
YushaArif99 committed Oct 30, 2024
1 parent 1d625ca commit f7aac8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ivy/func_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ def _inputs_to_native_arrays(*args, **kwargs):
-------
The return of the function, with native arrays passed in the arguments.
"""
if not ivy.array_mode:
return fn(*args, **kwargs)
# check if kwargs contains an out argument, and if so, remove it
has_out = False
out = None
Expand Down

0 comments on commit f7aac8f

Please sign in to comment.