Skip to content

Avoid strong refs to tracers in DynamicJaxprTrace. #29937

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

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

dougalm
Copy link
Collaborator

@dougalm dougalm commented Jul 2, 2025

We're doing this in anticipation of implementing on-the-fly trace-time DCE by allowing dead eqns to be dropped. Strong refs to tracers get in the way of that.

@dougalm dougalm requested a review from mattjj July 2, 2025 18:53
@dougalm dougalm force-pushed the avoid-strong-refs branch 8 times, most recently from 1b1f952 to e8c56d7 Compare July 2, 2025 20:15
We're doing this in anticipation of implementing on-the-fly trace-time DCE by
allowing dead eqns to be dropped. Strong refs to tracers get in the way of that.
@dougalm dougalm force-pushed the avoid-strong-refs branch from e8c56d7 to 4d718ca Compare July 2, 2025 20:30
@dougalm dougalm added the pull ready Ready for copybara import and testing label Jul 2, 2025
copybara-service bot pushed a commit that referenced this pull request Jul 3, 2025
PiperOrigin-RevId: 778903328
copybara-service bot pushed a commit that referenced this pull request Jul 3, 2025
PiperOrigin-RevId: 778903328
copybara-service bot pushed a commit that referenced this pull request Jul 3, 2025
PiperOrigin-RevId: 778921020
@copybara-service copybara-service bot merged commit cd1b952 into main Jul 3, 2025
29 of 30 checks passed
@mattjj mattjj deleted the avoid-strong-refs branch July 3, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kokoro:force-run pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants