Skip to content

Conversation

@sshonTT
Copy link

@sshonTT sshonTT commented Oct 15, 2025

Added sharding rule for stablehlo.batch_norm_inference op.

Intent: allow feature-axis sharding and pass it through between input, BN params {scale, offset, mean, var}, and output. Rationale: BN params are feature-wise and broadcast over other axes.
Limits: ranked shapes; valid feature_index; params broadcastable on feature;no sharding of params on non-feature axes.

@google-cla
Copy link

google-cla bot commented Oct 15, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Added sharding rule for stablehlo.batch_norm_inference op.
Intent: allow feature-axis sharding and pass it through between input, BN params {scale, offset, mean, var}, and output.
Rationale: BN params are feature-wise and broadcast over other axes.
Limits: ranked shapes; valid feature_index; params broadcastable on feature;no sharding of params on non-feature axes.

Signed-off-by: Sungjoon Shon <[email protected]>
@sshonTT sshonTT force-pushed the sshon/batchnorm-sharding-rule branch from 46a89e2 to 161955b Compare October 15, 2025 17:42
@sshonTT
Copy link
Author

sshonTT commented Oct 15, 2025

@tomnatan30 To fix this issue, I have updated a PR. Any comments / reviews would be appreciated!

@sshonTT
Copy link
Author

sshonTT commented Oct 22, 2025

@ZixuanJiang Hi! Apologies if I’m pinging the wrong person, but could you please take a look at this PR? This is my first contribution, so any feedback or comments would be greatly appreciated.

copybara-service bot pushed a commit that referenced this pull request Jan 9, 2026
The original PR is #847, whose author is https://github.com/sshonTT.

PiperOrigin-RevId: 853974950
@ZixuanJiang
Copy link
Collaborator

Thank you, Sungjoon. I added #954 and expect to submit it soon.

copybara-service bot pushed a commit that referenced this pull request Jan 9, 2026
The original PR is #847, whose author is https://github.com/sshonTT.

PiperOrigin-RevId: 853974950
copybara-service bot pushed a commit that referenced this pull request Jan 9, 2026
The original PR is #847, whose author is https://github.com/sshonTT.

PiperOrigin-RevId: 854208861
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.

2 participants