LBFGS optimizer

Hi, I want to know how to implement the LBFGS optimization in libtorch?

This test might be helpful as a template.

Thank you very much! :smile: