Skip to content

forward_counterpart / reverse_counterpart mapping for backends #39

Closed

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

Activity

  1. self-assigned this
    on Jun 24, 2026
  2. added this to the v3.0 milestone on Sep 28, 2026
  3. rsenne commented on Oct 30, 2026

    @rsenne
    OwnerAuthor

    Completed in 24b9805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions