Skip to content

Commit bf3e334

Browse files
Disable non_blocking when --deterministic or directml.
1 parent 71ec5b1 commit bf3e334

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

comfy/model_management.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,10 @@ def supports_dtype(device, dtype): #TODO
629629
def device_supports_non_blocking(device):
630630
if is_device_mps(device):
631631
return False #pytorch bug? mps doesn't support non blocking
632+
if args.deterministic: #TODO: figure out why deterministic breaks non blocking from gpu to cpu (previews)
633+
return False
634+
if directml_enabled:
635+
return False
632636
return True
633637

634638
def device_should_use_non_blocking(device):

0 commit comments

Comments
 (0)