Skip to content

Subtypes of ADGradientWrapper are defined in package extension, thus unable to be dispatched on #32

@sunxd3

Description

@sunxd3

There are use cases where users may want to dispatch on a particular subtype of ADGradientWrapper for customized behavior based on different AD backend.

One example of this is TuringLang/DynamicPPL.jl#626, where we want to be able to dispatch on ReverseDiffLogDensity, because we may need to recompute the cached tape. Now because ReverseDiffLogDensity is defined in package extension, it is invisible.

Would it make sense to move all (or some) of the definition of ADGradientWrapper subtypes into the main package to expose the name of the wrapper?

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