Skip to content

Commit 34793fb

Browse files
committed
make style && make quality
1 parent 84aa4a3 commit 34793fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/diffusers/models/attention_processor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5166,9 +5166,7 @@ def __call__(
51665166
key = torch.cat([img_key, ip_key], dim=2)
51675167
value = torch.cat([img_value, ip_value], dim=2)
51685168

5169-
ip_hidden_states = F.scaled_dot_product_attention(
5170-
query, key, value, dropout_p=0.0, is_causal=False
5171-
)
5169+
ip_hidden_states = F.scaled_dot_product_attention(query, key, value, dropout_p=0.0, is_causal=False)
51725170
ip_hidden_states = ip_hidden_states.transpose(1, 2).view(batch_size, -1, attn.heads * head_dim)
51735171
ip_hidden_states = ip_hidden_states.to(query.dtype)
51745172

0 commit comments

Comments
 (0)