Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #26262: [better_errors] Merge the JaxprDebugInfo and TracingDebugI…
…nfo into core.DebugInfo Imported from GitHub PR jax-ml/jax#26262 Previously, we had two almost identical classes: `TracingDebugInfo` and `JaxprDebugInfo`. The only difference was that `TracingDebugInfo` had a thunk to return the result paths, while `JaxprDebugInfo` had the result paths resolved to a tuple. The separation of these types provided some clarity, but also led to code duplication and required conversions as the debugging info goes from `WrappedFun` to a `Jaxpr` and then to `WrappedFun` again. Much of this PR is just renaming. Copybara import of the project: -- c70de6deedcc0311478936be232d042ede868d2f by George Necula <[email protected]>: [better_errors] Merge the JaxprDebugInfo and TracingDebugInfo into core.DebugInfo Previously, we had two almost identical classes: `TracingDebugInfo` and `JaxprDebugInfo`. The only difference was that `TracingDebugInfo` had a thunk to return the result paths, while `JaxprDebugInfo` had the result paths resolved to a tuple. The separation of these types provided some clarity, but also led to code duplication and required conversions as the debugging info goes from `WrappedFun` to a `Jaxpr` and then to `WrappedFun` again. Merging this change closes #26262 PiperOrigin-RevId: 722684417
- Loading branch information