[Feature] storage resize_ support custom device. (#99882)
Fixes #99326
Support storage resize_ for custom device, by calling dispatched tensor operations.
@ezyang this pr is another case that was brought up in issue #99326, please take a moment to review this change.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99882
Approved by: https://github.com/ezyang