-
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
Higher-Order functions: Low-hanging fruit #222
Labels
Comments
do we need to know the return type also? |
I don't think so 🤷 . Is this a particular concern? |
we don't know return types. |
Open
This was referenced Dec 28, 2020
We can probably close this now since JuliaDiff/ChainRulesCore.jl#363 is merged? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've yet to properly figure out how to make
ChainRules
play nicely with higher-order functions, see JuliaDiff/ChainRulesCore.jl#68.However, this doesn't stop us from implement a load of rules for functions that
ChainRules
knows how to handle explicitly. For example, we have a rule forsin
, so we can implementmap(sin, x)
ourselves for carefully chosen types ofx
.A pre-requisite for this is JuliaDiff/ChainRulesCore.jl#127 which would let us get hold of all of the rules that we've implemented. It'll be necessary to be able to filter them for appropriateness so that we know what they're applicable to, in particular we need to know
This would be a big win for e.g. Zygote where this is done, but with a piece-meal approach.
The text was updated successfully, but these errors were encountered: