Skip to content

Commit

Permalink
fix(ivy): Fix ivy.dft to avoid slice object containing scalar array
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaTz committed Sep 25, 2023
1 parent 78e8f99 commit 9ee0f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/ivy/experimental/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ def dft(

if onesided:
slices = [slice(0, a) for a in res.shape]
slices[axis] = slice(0, ivy.shape(res, as_array=True)[axis] // 2 + 1)
slices[axis] = slice(0, ivy.shape(res)[axis] // 2 + 1)
res = res[tuple(slices)]
return res

Expand Down

0 comments on commit 9ee0f94

Please sign in to comment.