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