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

[AutoBump] Merge with e88faf08 (Nov 05) (106) #493

Merged
merged 9 commits into from
Feb 3, 2025

Conversation

mgehre-amd
Copy link
Collaborator

No description provided.

Vremold and others added 8 commits November 5, 2024 19:15
…s gather/scatter (llvm#3829)

In torch.index_put like ops, `values` is only required to be
broadcastable to `input[indices]`, rather than exact dimension match.
This patch fixes the problem by add additional
stablehlo.dynamic_broadcast_in_dim before creating stablehlo.scatter op.
BTW, this patch also enhance the `getBroadcastResultShape` utility in
hlo namespace.
For the op `index_put_`, if accumulate == false, the behavior is
undefined if the indicies aren't unique
(https://pytorch.org/docs/stable/generated/torch.Tensor.index_put_.html).
So, when converting `AtenIndexPutHackedTwinOp` to a TMTensor scatter op,
mark the indices as unique if when `accumulate == false`.

This should have no functional effect (unless users are relying on UB)
and assuming unique indices has the benefit of unlocking better
optimizations in further compiler stages.

Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
Base automatically changed from bump_to_4c1518d3 to bump_to_8f52f5a4 January 31, 2025 10:15
[AutoBump] Merge with fixes of 70e0898 (Nov 06) (107)
Base automatically changed from bump_to_8f52f5a4 to feature/backport_ea1_ops January 31, 2025 10:32
@mgehre-amd mgehre-amd requested a review from jorickert February 3, 2025 14:03
@mgehre-amd mgehre-amd merged commit 1819dbe into feature/backport_ea1_ops Feb 3, 2025
4 checks passed
@mgehre-amd mgehre-amd deleted the bump_to_e88faf08 branch February 3, 2025 14: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.

5 participants