mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-01-23 12:34:27 +08:00
Merge branch 'master' of https://github.com/Jannchie/ComfyUI
This commit is contained in:
commit
ec3d0ab432
@ -175,7 +175,7 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):
|
||||
else:
|
||||
precision_scope = lambda a, b: contextlib.nullcontext(a)
|
||||
|
||||
with precision_scope(model_management.get_autocast_device(device), torch.float32):
|
||||
with precision_scope(model_management.get_autocast_device(device), dtype=torch.float32):
|
||||
attention_mask = None
|
||||
if self.enable_attention_masks:
|
||||
attention_mask = torch.zeros_like(tokens)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user