Skip to content

Commit

Permalink
fix: Fix Frontend Failing Test: torch - tensor.torch.Tensor.__gt__ (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksondm33 committed Feb 7, 2024
1 parent 54e3f62 commit 026c414
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,28 +752,22 @@ def test_torch___gt__(
backend_fw,
):
input_dtype, x = dtype_and_x
try:
helpers.test_frontend_method(
init_input_dtypes=input_dtype,
backend_to_test=backend_fw,
init_all_as_kwargs_np={
"data": x[0],
},
method_input_dtypes=input_dtype,
method_all_as_kwargs_np={
"other": x[1],
},
frontend_method_data=frontend_method_data,
init_flags=init_flags,
method_flags=method_flags,
frontend=frontend,
on_device=on_device,
)
except RuntimeError as e:
if "overflow" in e:
assume(False)
else:
raise
helpers.test_frontend_method(
init_input_dtypes=[input_dtype[0]],
backend_to_test=backend_fw,
init_all_as_kwargs_np={
"data": x[0],
},
method_input_dtypes=[input_dtype[1]],
method_all_as_kwargs_np={
"other": x[1],
},
frontend_method_data=frontend_method_data,
init_flags=init_flags,
method_flags=method_flags,
frontend=frontend,
on_device=on_device,
)


# __invert__
Expand Down

0 comments on commit 026c414

Please sign in to comment.