Fix 0-sized views of tensors in cudagraphs (#109055)
Fixes internal model. If a tensor with real storage is viewed by a 0-dim tensor it is still kept alive and needs to be kept track of in our storage tracking.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109055
Approved by: https://github.com/ezyang, https://github.com/xw285cornell