Remove TensorImpl::maybe_zero_dim.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/30878
Test Plan: Imported from OSS
Differential Revision: D18855989
Pulled By: gchanan
fbshipit-source-id: 44087b6136ec40d0a3de5b5a9f03c60d002a1107