IPEX fix torch.UntypedStorage.is_cuda

This commit is contained in:
Disty0
2023-12-05 22:20:52 +03:00
parent 0febcc2aa8
commit 6031b7199e
+1
View File
@@ -93,6 +93,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'