Throw error when saving storages that view same data with different type (#66949)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/58970
cc mruberry
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66949
Reviewed By: albanD
Differential Revision: D31926323
Pulled By: anjali411
fbshipit-source-id: f6e7acc0c1968b70a94f9b0b69a32780e8e21a62