Skip to content
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

Rewrite and simplify epilogue handling. #63793

Merged
merged 1 commit into from Mar 15, 2024
Merged

Conversation

copybara-service[bot]
Copy link

Rewrite and simplify epilogue handling.

The old approach ("isolated and injected") is confusing and doesn't work.
The new approach is to create a separate subgraph for the epilogue and
emit that as its own function. That way, only the epilogue needs to deal
with injected values.

This fixes most of the miscompiles in JAX. Transpose doesn't handle non-
trivial epilogues yet, but that should be an easy fix, similar to what's
done with reduce.

The old approach ("isolated and injected") is confusing and doesn't work.
The new approach is to create a separate subgraph for the epilogue and
emit that as its own function. That way, only the epilogue needs to deal
with injected values.

This fixes most of the miscompiles in JAX. Transpose doesn't handle non-
trivial epilogues yet, but that should be an easy fix, similar to what's
done with reduce.

PiperOrigin-RevId: 616090173
@copybara-service copybara-service bot merged commit 72bd6d0 into master Mar 15, 2024
@copybara-service copybara-service bot deleted the test_615719783 branch March 15, 2024 12: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.

None yet

1 participant