Skip to content

Reusable and NonReusable reverse mode capability #591

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

Activity

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

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