Skip to content

Fix checkpoint switch for forward vs reverse diff#32

Merged
cgiovanetti merged 3 commits into
mainfrom
checkpoint
May 22, 2026
Merged

Fix checkpoint switch for forward vs reverse diff#32
cgiovanetti merged 3 commits into
mainfrom
checkpoint

Conversation

@TonyZhou729

Copy link
Copy Markdown
Owner
  1. Added simple conditional statement for eqx.internal.while_loop, switches between between lax and checkpoint based on type of adjoint passed in.

  2. Checked that both ForwardMode and RecursiveCheckpointAdjoint with the appropriate forward or reverse mode auto diff are usable.

  3. No impact on speed.

@TonyZhou729 TonyZhou729 requested a review from cgiovanetti May 20, 2026 14:33

@cgiovanetti cgiovanetti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I probably will not make a new release for this change, so future changes should still use version 0.3.1 for now

@cgiovanetti cgiovanetti merged commit cb6b6d8 into main May 22, 2026
1 check passed
@TonyZhou729 TonyZhou729 deleted the checkpoint branch June 2, 2026 19:12
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.

2 participants