Skip to content

Commit d93a7be

Browse files
Missing args... from finitediff dispatch
1 parent f256dcf commit d93a7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/function.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ end
209209

210210
function instantiate_function(f, x, adtype::AutoFiniteDiff, p, num_cons = 0)
211211
num_cons != 0 && error("AutoFiniteDiff does not currently support constraints")
212-
_f = θ -> first(f.f(θ, p, args...))
212+
_f = (θ, args...) -> first(f.f(θ, p, args...))
213213

214214
if f.grad === nothing
215215
grad = (res, θ, args...) -> FiniteDiff.finite_difference_gradient!(res,x ->_f(x, args...), θ, FiniteDiff.GradientCache(res, x, adtype.fdtype))

0 commit comments

Comments
 (0)