-
Notifications
You must be signed in to change notification settings - Fork 89
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
Bug in rrule(*)
#247
Comments
Why do you think these should be numbers? If you have a fancy number type where multiplication is expensive, not easily elidible and you only want one of the two pullbacks, then you need thunks to avoid unnecessary computations. |
For the following reasons:
julia> a, a_pullback = rrule(+, 1, 2);
julia> a_pullback(1)
(Zero(), 1, 1)
|
Apparently I just need to add |
Yes, I agree that the documentation could be better. My (by no means expert!) understanding is that this package is still somewhat in the prototyping stage, hence there has not been much of a push yet to really polish the documentation. |
We are trying really hard with the documentation.
There are many things that need to be added prominantly. |
regarding docs for
I'm sure we can improve things, but the more concrete the suggestion the better :)
yeah, that's a good suggestion. It looks like i made an issue for this (JuliaDiff/ChainRulesCore.jl#154) but it's not yet addressed (and since then the example has changed so we no longer show this, nevermind comment on it) |
If I understand correctly, the following MWE should return numbers from the pullback:
The text was updated successfully, but these errors were encountered: