Skip to content

Commit

Permalink
Update backend_pytorch.py | Fix lock usage
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh authored Dec 8, 2024
1 parent dd9be96 commit 20dfb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_to_image/backend_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def predict(self, inputs):
pooled_prompt_embeds,
negative_pooled_prompt_embeds,
) = self.prepare_inputs(inputs, i)
with lock:
with self.lock:
generated = self.pipe(
prompt_embeds=prompt_embeds,
negative_prompt_embeds=negative_prompt_embeds,
Expand Down

0 comments on commit 20dfb0d

Please sign in to comment.