Skip to content

Reusable and NonReusable reverse mode capabilityΒ #591

Open
@mzgubic

Description

@mzgubic

From discussion on Slack with @chengchingwen

The idea is to define a new capabilities Reusable which means that the pullback can be called multiple times, and NonReusable, which means that the pullback can only be called once.

NonReusable can be useful when wanting to save allocations, such as in JuliaDiff/ChainRulesTestUtils.jl#264

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-clear-needWe are not certain we need this. So waiting for evidence to be presented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions