Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(math): support erfinv on mlx #19628

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions keras/src/backend/mlx/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def erf(x):
return mx.erf(x)


def erfinv(x):
x = convert_to_tensor(x)
return mx.erfinv(x)


def solve(a, b):
raise NotImplementedError(
"Linear system solving not yet implemented in mlx"
Expand Down
1 change: 0 additions & 1 deletion keras/src/backend/mlx/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from keras.src import backend
from keras.src import callbacks as callbacks_module
from keras.src import ops
from keras.src import optimizers as optimizers_module
from keras.src import tree
from keras.src.backend.common import standardize_dtype
Expand Down
Loading