Skip to content

Add validation for StableHloComposite decomposition graph.#10525

Closed
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_933965563
Closed

Add validation for StableHloComposite decomposition graph.#10525
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_933965563

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add validation for StableHloComposite decomposition graph.

The StableHloComposite operation now validates that the tensors used in the decomposition graph are completely separate from the tensors in the composite's input graph. This is enforced by recursively collecting all producer tensors for both the inputs and the decomposition outputs and checking for any overlap. If any tensor in the decomposition graph is also found in the input graph, an InvalidArgumentError is returned.

The StableHloComposite operation now validates that the tensors used in the decomposition graph are completely separate from the tensors in the composite's input graph. This is enforced by recursively collecting all producer tensors for both the inputs and the decomposition outputs and checking for any overlap. If any tensor in the decomposition graph is also found in the input graph, an InvalidArgumentError is returned.

PiperOrigin-RevId: 933965563
@copybara-service copybara-service Bot closed this Jun 29, 2026
@copybara-service copybara-service Bot deleted the test_933965563 branch June 29, 2026 07:06
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