JuliaDiff / AbstractDifferentiation.jl

An abstract interface for automatic differentiation.
https://juliadiff.org/AbstractDifferentiation.jl/
MIT License
136 stars 18 forks source link

Feature request: option to turn off ForwardDiff tagging #67

Open marius311 opened 1 year ago

marius311 commented 1 year ago

While developing code that you know isn't part of a higher order differentiation its really useful for compilation speed to turn off ForwardDiff's tagging, but that's not exposed here. Can we make it be? If we can agree on an API, I can implement it. I propose:

ForwardDiffBackend(tag=false) # default is true