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

[BUG] Put along axis crashes on shapes that it should work for #1807

Open
awni opened this issue Jan 28, 2025 · 0 comments · May be fixed by #1813
Open

[BUG] Put along axis crashes on shapes that it should work for #1807

awni opened this issue Jan 28, 2025 · 0 comments · May be fixed by #1813
Labels
bug Something isn't working

Comments

@awni
Copy link
Member

awni commented Jan 28, 2025

import mlx.core as mx

source = mx.zeros((1, 1, 8, 32))
indices = mx.array([0, 2, 4, 5]).reshape((1, 1, 4, 1))
update = mx.array(1.0)

print(mx.put_along_axis(source, indices, update, axis=-2))

Gives:

*** ValueError: [scatter] Update shape (1,1,4,1,1,1,1,1) is not valid for broadcasted index shape (1,1,4,32).
@awni awni added the bug Something isn't working label Jan 28, 2025
@awni awni linked a pull request Jan 31, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant