mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Fix IPEX
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ debug = os.environ.get('SD_DEVICE_DEBUG', None) is not None
|
||||
install_traceback() # traceback handler
|
||||
opts = None # initialized in get_backend to avoid circular import
|
||||
args = None # initialized in get_backend to avoid circular import
|
||||
cuda_ok = torch.cuda.is_available()
|
||||
cuda_ok = torch.cuda.is_available() or (hasattr(torch, 'xpu') and torch.xpu.is_available())
|
||||
inference_context = torch.no_grad
|
||||
cpu = torch.device("cpu")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user