Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
AwkNinja committed Jul 27, 2023
1 parent f1502a6 commit a67dc7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions ivy/functional/frontends/paddle/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,5 @@ def ifftshift(x, axes=None, name=None):
@with_unsupported_dtypes({"2.5.0 and below": ("float16",)}, "paddle")
@to_ivy_arrays_and_back
def rfft(x, n=None, axis=-1, norm="backward", name=None):
# x = ivy.array(x, dtype=ivy.float64)
ret = ivy.dft(x, axis=axis, inverse=False, onesided=True, dft_length=n, norm=norm)
return ivy.astype(ret, ret.dtype)

4 changes: 3 additions & 1 deletion ivy_tests/test_ivy/test_frontends/test_paddle/test_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def test_paddle_ifftshift(dtype_x_axis, frontend, test_flags, fn_tree, on_device
)


# rfft
@handle_frontend_test(
fn_tree="paddle.fft.rfft",
dtype_input_axis=helpers.dtype_values_axis(
Expand All @@ -191,12 +192,13 @@ def test_paddle_ifftshift(dtype_x_axis, frontend, test_flags, fn_tree, on_device
n=st.integers(min_value=2, max_value=10),
)
def test_paddle_rfft(
dtype_input_axis, norm, n, frontend, test_flags, fn_tree, on_device
dtype_input_axis, norm, n, frontend, backend_fw, test_flags, fn_tree, on_device
):
input_dtype, x, axis = dtype_input_axis
helpers.test_frontend_function(
input_dtypes=input_dtype,
frontend=frontend,
backend_to_test=backend_fw,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
Expand Down

0 comments on commit a67dc7f

Please sign in to comment.