diff --git a/torch/_tensor.py b/torch/_tensor.py index 8330fde58246cf6..fd3f338d514d0a7 100644 --- a/torch/_tensor.py +++ b/torch/_tensor.py @@ -113,7 +113,8 @@ def __deepcopy__(self, memo): # Update the test in test_serialization if you remove 'meta' from here if ( self.is_sparse - or self.device.type in ["lazy", "xla", "mps", "ort", "meta", "hpu"] + or self.device.type + in ["lazy", "xla", "mps", "ort", "meta", "hpu", "ipu"] or ( not torch._C._has_storage(self) and self.device.type == "privateuseone"