Skip to content

Commit

Permalink
Fixed failing test in tensorflow backend
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahSabry committed Sep 1, 2023
1 parent bdaccd9 commit 28a4654
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ivy/functional/frontends/jax/numpy/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def fftshift(x, axes=None, name=None):
return roll


@with_unsupported_dtypes({"2.5.1 and below": ("float16", "bfloat16")}, "paddle")
@with_unsupported_dtypes({"2.5.2 and below": ("float16", "bfloat16")}, "paddle")
@to_ivy_arrays_and_back
def rfft(a, n=None, axis=-1, norm=None):
if norm is None:
Expand All @@ -43,4 +43,5 @@ def rfft(a, n=None, axis=-1, norm=None):
a_new = ivy.astype(a, "complex64")
else:
a_new = a
return ivy.fft(a_new, axis, norm=norm, n=n)[:n//2 + 1]
fft_fun = ivy.fft
return fft_fun(a_new, axis, norm=norm, n=n)[:n//2 + 1]

0 comments on commit 28a4654

Please sign in to comment.