pytorch
f43165a7 - Remove duplicate call to objective function in strong wolfe line search in L-BFGS optimizer. (#72773)

Commit
3 years ago
Remove duplicate call to objective function in strong wolfe line search in L-BFGS optimizer. (#72773) Summary: With this change, the optimizer is almost twice as fast as before. As the result of the first call is never used, it looks like a copy paste error and therefore can be removed. In addition, this duplicate call is not present in the Python implementation. Pull Request resolved: https://github.com/pytorch/pytorch/pull/72773 Reviewed By: samdow Differential Revision: D34214312 Pulled By: albanD fbshipit-source-id: 4f4de08633c7236f3ccce8a2a74e56500003281b (cherry picked from commit 4a63f812ab8020a11b6f4766f16d641a179f6a56)
Author
Committer
Parents
Loading