Skip to content

Commit

Permalink
cleaner commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJay07 committed Mar 12, 2024
1 parent 8e0f42d commit 7220932
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ivy/functional/frontends/paddle/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ def arange(start, end=None, step=1, dtype=None, name=None):
)
@to_ivy_arrays_and_back
def assign(x, output=None):
if len(ivy.shape(x)) == 0:
ret = ivy.copy_array(x, to_ivy_array=False, out=output)
else:
if len(ivy.shape(x)) != 0:
x = ivy.reshape(x, ivy.shape(x))
ret = ivy.copy_array(x, to_ivy_array=False, out=output)
ret = ivy.copy_array(x, to_ivy_array=False, out=output)
return ret


Expand Down

0 comments on commit 7220932

Please sign in to comment.