Skip to content

Commit

Permalink
Add support for erfinv (#8081)
Browse files Browse the repository at this point in the history
  • Loading branch information
matinehAkhlaghinia committed Sep 27, 2024
1 parent f088810 commit ed68381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion experimental/torch_xla2/test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"diagonal_copy",
"diagonal_scatter",
"digamma",
"erfinv",
"exponential",
"gcd",
"geometric",
Expand Down
6 changes: 6 additions & 0 deletions experimental/torch_xla2/torch_xla2/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,12 @@ def _aten_erf(x):
return jax.lax.erf(x)


@op(torch.ops.aten.erfinv)
@op_base.promote_int_input
def _aten_erfinv(input):
return jax.lax.erf_inv(input)


# aten.exp
@op(torch.ops.aten.exp)
def _aten_exp(input):
Expand Down

0 comments on commit ed68381

Please sign in to comment.