Simplify implementation of newWithStorage1d. (#34382)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34382
The previous implementation was handling both newWithStorage and newWithSize, which doesn't make much sense.
Test Plan: Imported from OSS
Differential Revision: D20311056
Pulled By: gchanan
fbshipit-source-id: 2696a4566e6203c98338c86cbf4c236bd18d7c49