Calls to Tensor::to pass MemoryFormat by TensorOptions (#34249)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34249
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D20834164
Pulled By: bhosmer
fbshipit-source-id: 67586512df6b30869a8a77149fde6ff27beab81e