Peephole Optimize out conv(x).dim(), which prevents BN fusion (#50221)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50221
Test Plan: Imported from OSS
Reviewed By: tugsbayasgalan
Differential Revision: D25856266
Pulled By: eellison
fbshipit-source-id: ef7054b3d4ebc59a0dd129116d29273be33fe12c