Skip to content
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

[pytorch] Add strong Wolfe line search for lbfgs #8824

Closed
wants to merge 9 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lintt
  • Loading branch information
fehiepsi committed Jun 23, 2018
commit 5ad13fb4cad5aafec66c300aa51f342fd50da7d0
1 change: 1 addition & 0 deletions torch/optim/lbfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def step(self, closure):
raise RuntimeError("only 'strong_Wolfe' is supported")
else:
x_init = self._clone_param()

def obj_func(x, t, d):
return self._directional_evaluate(closure, x, t, d)
loss, flat_grad, t, ls_func_evals = _strong_Wolfe(obj_func, x_init, t, d,
Expand Down