Skip to content

forward_counterpart / reverse_counterpart mapping for backends #39

Description

@rsenne

Right now the direction of the AD-HVP backend is fixed by extension-specific overrides of _hvp_forward_backend / _hvp_closure_backend in src/DEER/DEER.jl. For plain AutoEnzyme(), EnzymeExt rewrites the backend to pin mode=Enzyme.Forward + function_annotation=Enzyme.Const. This works but is per-package special-casing: there's no generic way to ask for "the forward-mode variant of this backend," so e.g. a Mooncake user can't reach the forward-on-grad path

DI opened an issue about this

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions