explicitly provide memory format when calling to clone() at lbfgs.py
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28692
Test Plan: Imported from OSS
Differential Revision: D18333356
Pulled By: ifedan
fbshipit-source-id: ca0de6b721f695893c0756ea1b3b469df1a2b249