Skip to content

Commit edfc64b

Browse files
committed
update
1 parent 0578c2a commit edfc64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/attention_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3950,7 +3950,7 @@ def apply_rotary_emb(x, freqs_cos, freqs_sin):
39503950
# dropout
39513951
hidden_states = attn.to_out[1](hidden_states)
39523952

3953-
if attn.context_pre_only is not None and not attn.context_pre_only:
3953+
if getattr(attn, "to_add_out", None) is not None:
39543954
encoder_hidden_states = attn.to_add_out(encoder_hidden_states)
39553955

39563956
return hidden_states, encoder_hidden_states

0 commit comments

Comments
 (0)