Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusable and NonReusable reverse mode capability #591

Open
mzgubic opened this issue Oct 21, 2022 · 0 comments
Open

Reusable and NonReusable reverse mode capability #591

mzgubic opened this issue Oct 21, 2022 · 0 comments
Labels
pending-clear-need We are not certain we need this. So waiting for evidence to be presented

Comments

@mzgubic
Copy link
Member

mzgubic commented Oct 21, 2022

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

@mzgubic mzgubic changed the title Reusable reverse mode capability Reusable and NonReusable reverse mode capability Oct 21, 2022
@oxinabox oxinabox added speculative fairly out there ideas for consideration in longer term pending-clear-need We are not certain we need this. So waiting for evidence to be presented and removed speculative fairly out there ideas for consideration in longer term labels Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-clear-need We are not certain we need this. So waiting for evidence to be presented
Projects
None yet
Development

No branches or pull requests

2 participants