-
Notifications
You must be signed in to change notification settings - Fork 126
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
[stablehlo] Add batching dims to stablehlo.gather
and stablehlo.scatter
#2259
Conversation
stablehlo.gather
and stablehlo.scatter
…lo.scatter" This reverts commit 39da3ab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the thorough implementation! This is round 1 of X of my reviews :)
I haven't reviewed ops_stablehlo.mlir
and verify_scatter.mlir
because my brain is fried after reviewing this, and I expect the test names to change with the constraint number bump so I'll leave the review until the remaining feedbacks are addressed.
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 647647825
…attributes in stablehlo. This change also uses the new batching dims for gather/scatter batching rules, to avoid concatenating the indices with iota. See openxla/stablehlo#2259 PiperOrigin-RevId: 678649138
Add
operand_batching_dims
andstart_indices_batching_dims
attributes tostablehlo.gather
.operand_batching_dims
refers to the dimensions of theoperand
that are treated as batch.start_indices_batching_dims
refers to the dimensions of thestart_indices
that are treated as batch. The corresponding dimension sizes must be equal. The semantics is equivalent to concatenating the outputs of the gather with each slices ofoperand
andstart_indices
.Similarly, add
input_batching_dims
andscatter_indices_batching_dims
attributes tostablehlo.scatter
.input_batching_dims
refers to the dimensions of each tensor ininputs
that are treated as batch.scatter_indices_batching_dims
refers to the dimensions of thescatter_indices
that are treated as batch.See #2084 for more information