Skip to content

Commit

Permalink
Update line search in LBFGS to use jit and unroll from LBFGS
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwilliamson authored Feb 19, 2022
1 parent 0ff6be8 commit 371462b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaxopt/_src/lbfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def update(self,
value_and_grad=True,
maxiter=self.maxls,
decrease_factor=self.decrease_factor,
condition=self.condition)
condition=self.condition,
jit=self.jit,
unroll=self.unroll)
init_stepsize = state.stepsize * self.increase_factor
new_stepsize, ls_state = ls.run(init_stepsize=init_stepsize,
params=params, value=value, grad=grad,
Expand Down

0 comments on commit 371462b

Please sign in to comment.