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

mlx - handle int64 and uint64 for scatter and cum* #19666

Merged
merged 1 commit into from May 6, 2024

Conversation

lkarthee
Copy link
Contributor

@lkarthee lkarthee commented May 5, 2024

No description provided.

@@ -211,6 +209,10 @@ def vectorized_map(function, elements):
def scatter(indices, values, shape):
indices = convert_to_tensor(indices)
values = convert_to_tensor(values)
if values.dtype == mx.int64:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary fix for until scatter bug is resolved in mlx. See mlx_backend .

@codecov-commenter
Copy link

codecov-commenter commented May 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (mlx@5a3542b). Click here to learn what that means.

Files Patch % Lines
keras/src/backend/mlx/core.py 0.00% 8 Missing ⚠️
keras/src/backend/mlx/numpy.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             mlx   #19666   +/-   ##
======================================
  Coverage       ?   75.54%           
======================================
  Files          ?      508           
  Lines          ?    47222           
  Branches       ?     8686           
======================================
  Hits           ?    35675           
  Misses         ?     9805           
  Partials       ?     1742           
Flag Coverage Δ
keras 75.40% <0.00%> (?)
keras-jax 59.77% <0.00%> (?)
keras-numpy 54.32% <0.00%> (?)
keras-tensorflow 61.07% <0.00%> (?)
keras-torch 59.78% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lkarthee lkarthee changed the title mlx - handle i64 for scatter and cumsum mlx - handle int64 and uint64 for scatter and cum* May 5, 2024
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! LGTM

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels May 6, 2024
@fchollet fchollet merged commit ad948c2 into keras-team:mlx May 6, 2024
6 of 7 checks passed
@google-ml-butler google-ml-butler bot removed ready to pull Ready to be merged into the codebase kokoro:force-run labels May 6, 2024
@lkarthee lkarthee deleted the scatter_bug_fix branch May 6, 2024 17:23
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
PR Queue
Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

None yet

4 participants