Skip to content

Commit 26c33ef

Browse files
committed
refactor: removing redundant type conversion
1 parent 60d7385 commit 26c33ef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/diffusers/pipelines/chroma/pipeline_chroma.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ def _get_t5_prompt_embeds(
233233
)
234234
text_input_ids = text_inputs.input_ids
235235
attention_mask = text_inputs.attention_mask.clone()
236-
attention_mask = attention_mask.bool()
237236

238237
# Chroma requires the attention mask to include one padding token
239238
seq_lengths = attention_mask.sum(dim=1)

0 commit comments

Comments
 (0)