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

Fix assertion fails on DebugInfo with JAX_USE_DIRECT_LINEARIZE=1 #26810

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gnecula
Copy link
Collaborator

@gnecula gnecula commented Feb 27, 2025

When using JAX_USE_DIRECT_LINEARIZE=1 there was an assertion that result_paths is not None. This is because in this case we create a DebugInfo that is not used with lu.wrap_init (which normally takes care of the result_paths). To allow others to make progress, I just fill in a (wrong) result_paths, and a TODO to come back and fix this later.

When using JAX_USE_DIRECT_LINEARIZE=1 there was an assertion that
result_paths is not None. This is because in this case we create
a DebugInfo that is not used with `lu.wrap_init` (which normally
takes care of the result_paths). To allow others to make
progress, I just fill in a (wrong) result_paths, and a TODO
to come back and fix this later.
@gnecula gnecula requested a review from dfm February 27, 2025 15:29
@gnecula
Copy link
Collaborator Author

gnecula commented Feb 27, 2025

mattjj#40 is a better alternative!

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