Reusable
and NonReusable
reverse mode capability
#591
Labels
pending-clear-need
We are not certain we need this. So waiting for evidence to be presented
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, andNonReusable
, 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#264The text was updated successfully, but these errors were encountered: