Disable non blocking.

It fixed some perf issues but caused other issues that need to be debugged.
This commit is contained in:
comfyanonymous 2024-08-18 14:38:09 -04:00 committed by GitHub
parent acc2ed8389
commit 22b99fdff4

View File

@ -21,6 +21,7 @@ import comfy.model_management
def cast_to(weight, dtype=None, device=None, non_blocking=False):
non_blocking = False
return weight.to(device=device, dtype=dtype, non_blocking=non_blocking)
def cast_to_input(weight, input, non_blocking=False):