Skip to content

Commit

Permalink
Fix last pr.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Nov 14, 2023
1 parent ec3d0ab commit 728613b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/sd1_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def forward(self, tokens):
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
Expand Down

0 comments on commit 728613b

Please sign in to comment.