"...git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "ffd0f9f417d94bce03ea863131df9e6a86a89ada"
Commit 728613bb authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix last pr.

parent ec3d0ab4
......@@ -173,7 +173,7 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):
if getattr(self.transformer, self.inner_name).final_layer_norm.weight.dtype != torch.float32:
precision_scope = torch.autocast
else:
precision_scope = lambda a, b: contextlib.nullcontext(a)
precision_scope = lambda a, dtype: contextlib.nullcontext(a)
with precision_scope(model_management.get_autocast_device(device), dtype=torch.float32):
attention_mask = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment