Skip to content

Commit

Permalink
🤖 Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-branch committed Oct 12, 2023
1 parent e9c0122 commit 2686294
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,35 @@ def test_torch_repeat_interleave(
)


# resolve_conj
@handle_frontend_test(
fn_tree="torch.resolve_conj",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("valid"),
num_arrays=1,
),
)
def test_torch_resolve_conj(
*,
dtype_and_x,
on_device,
fn_tree,
frontend,
test_flags,
backend_fw,
):
input_dtype, x = dtype_and_x
helpers.test_frontend_function(
input_dtypes=input_dtype,
backend_to_test=backend_fw,
frontend=frontend,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
input=x[0],
)


# roll
@handle_frontend_test(
fn_tree="torch.roll",
Expand Down Expand Up @@ -1826,32 +1855,3 @@ def test_torch_view_as_real(
on_device=on_device,
input=np.asarray(x[0], dtype=input_dtype[0]),
)


# resolve_conj
@handle_frontend_test(
fn_tree="torch.resolve_conj",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("valid"),
num_arrays=1,
),
)
def test_torch_resolve_conj(
*,
dtype_and_x,
on_device,
fn_tree,
frontend,
test_flags,
backend_fw,
):
input_dtype, x = dtype_and_x
helpers.test_frontend_function(
input_dtypes=input_dtype,
backend_to_test=backend_fw,
frontend=frontend,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
input=x[0]
)

0 comments on commit 2686294

Please sign in to comment.