Skip to content

implement axes_scan's broadcast semantics via dce - #5540

Merged
copybara-service[bot] merged 1 commit into
google:mainfrom
mattjj:broadcast-via-dce
Jul 29, 2026
Merged

implement axes_scan's broadcast semantics via dce#5540
copybara-service[bot] merged 1 commit into
google:mainfrom
mattjj:broadcast-via-dce

Conversation

@mattjj

@mattjj mattjj commented Jul 29, 2026

Copy link
Copy Markdown
Member

By using DCE instead of partial evaluation, we unblock JAX_REMAT3=1 and the deletion of general partial eval in JAX.

Drive-by fix of a separate issue in how debug_info was being created (don't pass in_tree, pass args). That should improve some error messages.

@mattjj
mattjj force-pushed the broadcast-via-dce branch 2 times, most recently from e8ad4f5 to 2ed9d01 Compare July 29, 2026 21:05
By using DCE instead of partial evaluation, we unblock JAX_REMAT3=1 and
the deletion of general partial eval in JAX.

(A JAX version skew issue: in the newest (unreleased) JAX, consts are
just leading invars. So we don't switch on len(consts).)
@mattjj
mattjj force-pushed the broadcast-via-dce branch from 2ed9d01 to ba90558 Compare July 29, 2026 21:47
@copybara-service
copybara-service Bot merged commit ae2d29e into google:main Jul 29, 2026
19 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants