explicitly provide memory format when calling to *_like operators
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29388
Test Plan: Imported from OSS
Differential Revision: D18429725
Pulled By: VitalyFedyunin
fbshipit-source-id: 6b7662874e229e6fb0d4bbcf32ec15fc824d6118