From dd7bb33ab60864cf86a93f6be03c0d92b62a1cdb Mon Sep 17 00:00:00 2001 From: Disty0 Date: Tue, 5 Dec 2023 22:18:47 +0300 Subject: [PATCH] IPEX fix torch.UntypedStorage.is_cuda --- library/ipex/hijacks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ipex/hijacks.py b/library/ipex/hijacks.py index 62d29605..4a9a3569 100644 --- a/library/ipex/hijacks.py +++ b/library/ipex/hijacks.py @@ -117,6 +117,7 @@ def linalg_solve(A, B, *args, **kwargs): # pylint: disable=invalid-name else: return original_linalg_solve(A, B, *args, **kwargs) +@property def is_cuda(self): return self.device.type == 'xpu'