Skip to content

Commit

Permalink
fix: fixed tests not passing at jax backend (#27847)
Browse files Browse the repository at this point in the history
Co-authored-by: NripeshN <nripesh14@gmail.com>
  • Loading branch information
samthakur587 and NripeshN committed Jan 5, 2024
1 parent b198353 commit 3243991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ivy/functional/backends/jax/elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def atan2(x1: JaxArray, x2: JaxArray, /, *, out: Optional[JaxArray] = None) -> J
return jnp.arctan2(x1, x2)


@with_unsupported_dtypes({"0.4.23 and below": ("complex",)}, backend_version)
def atanh(x: JaxArray, /, *, out: Optional[JaxArray] = None) -> JaxArray:
return jnp.arctanh(x)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ def test_atan2(*, dtype_and_x, test_flags, backend_fw, fn_name, on_device):
@handle_test(
fn_tree="functional.ivy.atanh",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("float_and_complex")
min_value=1e-30,
max_value=1e30,
available_dtypes=helpers.get_dtypes("float_and_complex"),
),
)
def test_atanh(*, dtype_and_x, test_flags, backend_fw, fn_name, on_device):
Expand Down

0 comments on commit 3243991

Please sign in to comment.