Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Tensor.__deepcopy__ via clone(), on IPU (#89129) #89999

Merged
merged 1 commit into from Dec 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion torch/_tensor.py
Expand Up @@ -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"
Expand Down