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

[LINALG] Broadcast values to shape of slize in index_put #3487

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

ramiro050
Copy link
Collaborator

The index_put operation, input[indices] = values, allows for the values to be any shape that is broadcastable to the slice input[indices]. This commit adds broadcasting support to the Linalg lowering of IndexPutHackedTwinOp.

Fixes: #3465

@aartbik
Copy link
Contributor

aartbik commented Jun 24, 2024

Ready for review? Bots show some failures.

@ramiro050 ramiro050 force-pushed the broadcast-values branch 2 times, most recently from 51614d1 to a76c6fc Compare June 25, 2024 13:27
@ramiro050
Copy link
Collaborator Author

@aartbik, ready!

The `index_put` operation, `input[indices] = values`, allows for the
values to be any shape that is broadcastable to the slice
`input[indices]`. This commit adds broadcasting support to the Linalg
lowering of `IndexPutHackedTwinOp`.
@ramiro050 ramiro050 enabled auto-merge (squash) June 26, 2024 08:48
@ramiro050 ramiro050 merged commit e29191b into llvm:main Jun 26, 2024
3 checks passed
@ramiro050 ramiro050 deleted the broadcast-values branch June 26, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tm_tensor.scatter op mismatch in shape of indices and update value
2 participants