Skip to content

derive HVP strategy from DI's mode traits #38

Description

@rsenne

Replace the hardcoded per-backend _hvp_strategy list with dispatch on DI's pushforward_performance / pullback_performance traits, i.e. choose ForwardOnGrad when the backend reports forward-mode support and ReverseOnGrad when it's reverse-only, mirroring how DI's hvp_mode derives its mode from those same traits, rather than enumerating AutoMooncake/AutoZygote/… by hand.

Should also think about how reverse-over-forward will work.

See this discussion for context, and this DI code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions