Skip to content

Commit

Permalink
fixed expm1 method in the PyTorch frontend (#21745)
Browse files Browse the repository at this point in the history
Co-authored-by: NripeshN <[email protected]>
  • Loading branch information
he11owthere and NripeshN authored Dec 23, 2023
1 parent 5f58f81 commit b2389e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ivy/functional/frontends/torch/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,8 +1386,8 @@ def cov(self, /, *, correction=1, fweights=None, aweights=None):
def exp(self):
return torch_frontend.exp(self)

@with_unsupported_dtypes(
{"2.1.2 and below": ("bfloat16", "float16", "complex")}, "torch"
@with_supported_dtypes(
{"2.1.2 and below": ("bfloat16", "float32", "float64")}, "torch"
)
def expm1(self):
return torch_frontend.expm1(self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6533,7 +6533,7 @@ def test_torch_expand_as(
init_tree="torch.tensor",
method_name="expm1",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric"),
available_dtypes=helpers.get_dtypes("valid"),
),
)
def test_torch_expm1(
Expand Down

0 comments on commit b2389e0

Please sign in to comment.