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