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