mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
Fix args.directml is not None error
This commit is contained in:
parent
b8fc850b47
commit
8508a5a853
@ -37,7 +37,7 @@ if args.deterministic:
|
||||
torch.use_deterministic_algorithms(True, warn_only=True)
|
||||
|
||||
directml_enabled = False
|
||||
if args.directml is not None:
|
||||
if args.directml:
|
||||
import torch_directml
|
||||
directml_enabled = True
|
||||
device_index = args.directml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user