Repository navigation
Add AutoPiste - #191
Open
EvoArt wants to merge 1 commit into
Open
Add AutoPiste#191EvoArt wants to merge 1 commit into
EvoArt wants to merge 1 commit into
Conversation
Selects the Piste.jl backend (https://github.com/EvoArt/Piste.jl), in forward mode (dual numbers, optional fixed `chunksize`) or reverse mode (a tape), via the `mode` field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gdalle
self-requested a review
November 9, 2026 13:12
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
AutoPistefor Piste.jl, a forward- and reverse-mode AD package whose derivatives survivejuliac --trim. A DifferentiationInterface extension for it is in JuliaDiff/DifferentiationInterface.jl#1089 (draft until this is released).Design
modefield. Piste has both modes in one package, so I followedAutoEnzyme(mode as a field) rather thanAutoMooncake/AutoMooncakeForward, which I understand were split only to avoid a breaking release.mode(::AutoPiste)returns the field, and the type parameter is restricted toUnion{ForwardMode, ReverseMode}.chunksizeis a type parameter, as forAutoForwardDiff. This matters more than usual for Piste: under--trimthe chunk width has to be known statically, so trimmed code passes an explicit value.Open questions, happy to change either:
ForwardMode/ReverseModeare public but not exported, so users writeADTypes.ReverseMode(). Would you prefer symbols (mode = :reverse), or two structs?Changes
AutoPistestruct, docstring,mode,show, export,Auto(:Piste), the docs page, and tests intest/dense.jl,test/misc.jlandtest/symbols.jl.🤖 Generated with Claude Code