mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix hip detection
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ elif args.use_directml:
|
||||
backend = 'directml'
|
||||
elif torch.cuda.is_available() and torch.version.cuda:
|
||||
backend = 'cuda'
|
||||
elif torch.cuda.is_available() and torch.version.rocm:
|
||||
elif torch.cuda.is_available() and torch.version.hip:
|
||||
backend = 'rocm'
|
||||
elif sys.platform == 'darwin':
|
||||
backend = 'mps'
|
||||
|
||||
Reference in New Issue
Block a user