Add size peephole optimziation (#36758)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36758
Test Plan: Imported from OSS
Differential Revision: D21160760
Pulled By: eellison
fbshipit-source-id: 9cdb8eeffa71fb4670a811347ae4fad2a82ae1d8