aquakin.forward_adjoint#
- aquakin.forward_adjoint()[source]#
Return the diffrax adjoint that supports forward-mode autodiff.
A thin, dependency-free alias for
diffrax.DirectAdjoint()so a user script that needs forward-mode AD through a reactor solve (e.g. the reactor inside adgsm(ad_mode="forward")fn) can writeadjoint=aquakin.forward_adjoint()without importingdiffraxor knowing that the defaultRecursiveCheckpointAdjointregisters acustom_vjpthat rejects forward mode.- Return type:
AbstractAdjoint