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