Skip to content

[XLA] Support xla.debug.Log in sharding passes#1333

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_886996405
Open

[XLA] Support xla.debug.Log in sharding passes#1333
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_886996405

Conversation

@copybara-service
Copy link
Copy Markdown

[XLA] Support xla.debug.Log in sharding passes

This change adds support for xla.debug.Log custom calls in SPMD partitioning.

  • Preserves original sharding of operands by adding an "original_sharding" frontend attribute before simplification.
  • Registers XlaDebugLogPartitioner to handle these calls during partitioning.
  • Populates operands_sharding in DebugAttributesProto with the resolved shardings.
  • Includes unit tests in spmd_partitioner_test.cc to verify this behavior.

This change adds support for xla.debug.Log custom calls in SPMD partitioning.

- Preserves original sharding of operands by adding an "original_sharding" frontend attribute before simplification.
- Registers XlaDebugLogPartitioner to handle these calls during partitioning.
- Populates operands_sharding in DebugAttributesProto with the resolved shardings.
- Includes unit tests in spmd_partitioner_test.cc to verify this behavior.

PiperOrigin-RevId: 886996405
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