-
Notifications
You must be signed in to change notification settings - Fork 218
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
Make sure all distributions support AD where possible #674
Comments
There are some distributions in this list which already have callback functions, e.g. I think you also implemented some on the Turing side, e.g. https://github.com/TuringLang/Turing.jl/pull/664/files. Maybe we should port them to StatsFuns (and DiffRules) as well. How do you think? |
@xukai92 Yes, |
Here is the ful list of distributions that requires special treatments for AD:
Related: JuliaStats/StatsFuns.jl#60 #615 |
We also need to test both forward and reverse mode (different AD implementation). And vector operations (different in bijection mapping) for all. |
Currently, the following distributions need a generic Julia implementation for
This can be done in a similar way to JuliaStats/StatsFuns.jl#21, or #664. We should also consider moving the hotfixes for |
Here's the full list of distributions from
|
This seems to be fixed now. I will close the issue. |
The following link shows the list of distributions that
StatsFuns
usesccall
for: https://github.com/JuliaStats/StatsFuns.jl/blob/7473d0d8f7c5b2f4a53f0625ada5f2323c84ffe4/src/rmath.jl#L99. We should make AD workarounds for all of these.Supersedes #673
The text was updated successfully, but these errors were encountered: