Skip to content

Fix op sharding rule for stablehlo.scatter.#1257

Closed
copybara-service[bot] wants to merge 0 commit intomainfrom
test_907780335
Closed

Fix op sharding rule for stablehlo.scatter.#1257
copybara-service[bot] wants to merge 0 commit intomainfrom
test_907780335

Conversation

@copybara-service
Copy link
Copy Markdown

Fix op sharding rule for stablehlo.scatter.

For stablehlo.scatter, an input dim can correspond to an output dim through
the update_window_dims attribute. When these two corresponding dims don’t have
the same sizes, we currently mark the input dim as kPassThrough and the output dim
as kNeedReplication. This would lead to a local scatter op that partitions the
input but not the output, which doesn't preserve the semantics of the original
op.

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.

1 participant