-
Notifications
You must be signed in to change notification settings - Fork 1
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
ForwardDiff.jl support? #28
Comments
That's a good idea! How would that support look like? Would we have to provide additional overloads? Now that you're asking, I'm wondering if there is a way to also support other differentiation libraries? Do you know if there is a generic way to support all of them? |
For ForwardDiff yes, you would need to support overloads, I can make a PR with the corresponding changes to allow support. The way to support this is via the pkg extension mechanism (from Julia 1.9 onwards). This allows to only load the AD code if it's necessary |
A PR would be great! Could you please also add corresponding tests? One question, though: Would this PR require to add a dependency? I'm asking, because I'd like to avoid this as much as possible. (A "dev"-dependency in the |
The extension mechanism does not require direct dependencies (in partícular they are weak dependencies, added in the |
is it possible to add ForwardDiff.jl support as an extension? i can help if it's necessary
The text was updated successfully, but these errors were encountered: