explicitly provide memory format when calling to clone() at TensorTransformations.cpp
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28664
Test Plan: Imported from OSS
Differential Revision: D18333351
Pulled By: ifedan
fbshipit-source-id: 8a42b65330c55e23e699f2c1ae58824e74cdd1e1