pytorch/torch/csrc/api
Anton Jansson f43165a75f 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 4a63f812ab)
2022-02-15 15:33:13 +00:00
..
include/torch Implement Tanh Gelu Approximation (#61439) 2022-02-14 03:40:32 +00:00
src Remove duplicate call to objective function in strong wolfe line search in L-BFGS optimizer. (#72773) 2022-02-15 15:33:13 +00:00