Skip to content

Commit

Permalink
fix(frontend): add @to_ivy_arrays_and_back to torch.polar
Browse files Browse the repository at this point in the history
  • Loading branch information
dettmerramon committed Sep 15, 2023
1 parent 13113f2 commit bbacc91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ivy/functional/frontends/torch/creation_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def ones_like_v_0p4p0_and_above(


@with_supported_dtypes({"2.0.1 and below": ("float32", "float64")}, "torch")
@to_ivy_arrays_and_back
def polar(
abs,
angle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def test_complex(
@handle_frontend_test(
fn_tree="torch.polar",
dtype_and_x=helpers.dtype_and_values(available_dtypes=helpers.get_dtypes("float")),
test_with_out=st.just(False),
)
def test_polar(
*,
Expand Down

0 comments on commit bbacc91

Please sign in to comment.