Stop calling newWithSize directly. (#34384)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34384
Test Plan: Imported from OSS
Differential Revision: D20311057
Pulled By: gchanan
fbshipit-source-id: 1e1a1f9b757b62f20d8d806f21abdd70f07b12aa