-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add option to specify ForwardDiff chunk size #126
Comments
if i remember correctly, the constructors accept a chunk keyword: NLSolversBase.jl/src/objective_types/oncedifferentiable.jl Lines 16 to 19 in 62d2199
on TwiceDIfferentiable :NLSolversBase.jl/src/objective_types/twicedifferentiable.jl Lines 103 to 104 in 62d2199
|
Yes if you define the objective type yourself it is possible. I supposed OP is asking for this to be a keyword for |
Hi, I did indeed wish for it to be available in |
Yeah, I had originally chosen not to focus too much on this because I wasn't sure whether or not I wanted users to use them directly :) But it would solve the problem for now. I do think that it makes sense to allow for chunk size to be et in optimize as well though. |
Hi, it would be nice to have this option available (and propagate it to Optim.jl as well), this setting can have a great impact on performances/allocations in some situations (see for ex: https://discourse.julialang.org/t/large-memory-allocation-in-forwarddiff/42581/14).
Thanks!
The text was updated successfully, but these errors were encountered: