Get rid of torch.mean shape analysis
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22810
Test Plan: Imported from OSS
Differential Revision: D16226973
Pulled By: jamesr66a
fbshipit-source-id: ad23f48782e8d21788ecae39fc512ff4502716bf