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

How to specify rules for kwargs #674

Closed
RainerHeintzmann opened this issue May 14, 2024 · 1 comment
Closed

How to specify rules for kwargs #674

RainerHeintzmann opened this issue May 14, 2024 · 1 comment

Comments

@RainerHeintzmann
Copy link

I am trying to specify rrules for functions which are using key word arguments kwargs.
I was looking through the documentation of ChainRulesCore.jl but did not see anything.
Is there an agreed way on how to specify this such that downstram AD systems can use such rrules?
The problem is that one cannot return a mix of non-named and named arguments in the pullback.
Here is a more detailed description of this issue:
https://discourse.julialang.org/t/rrule-or-frule-with-kwargs/114150

@oxinabox
Copy link
Member

I am closing this and answering on discourse to avoid fragmenting the response.
We can later open a more specific issue about what (if anything) to do in CRC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants