mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 11:46:37 +08:00
Update ops.py
This commit is contained in:
parent
6afde26cf3
commit
64937567ff
@ -21,8 +21,7 @@ import comfy.model_management
|
||||
|
||||
|
||||
def cast_to(weight, dtype=None, device=None, non_blocking=False):
|
||||
if dtype == torch.float32:
|
||||
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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user