From 842dba888fe750cfb47a3ec91fe139ba5df33392 Mon Sep 17 00:00:00 2001 From: comfyanonymous <121283862+comfyanonymous@users.noreply.github.com> Date: Sun, 18 Aug 2024 14:18:22 -0400 Subject: [PATCH] Try again. --- comfy/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/ops.py b/comfy/ops.py index 2d2438b81..4690b48bd 100644 --- a/comfy/ops.py +++ b/comfy/ops.py @@ -21,7 +21,7 @@ import comfy.model_management def cast_to(weight, dtype=None, device=None, non_blocking=False): - if weight.device == device: + if weight.dtype == torch.float32: non_blocking = False return weight.to(device=device, dtype=dtype, non_blocking=non_blocking)