IPEX fix torch.UntypedStorage.is_cuda

This commit is contained in:
Disty0
2023-12-05 22:18:47 +03:00
parent a9c6182b3f
commit dd7bb33ab6

View File

@@ -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'