Skip to content

Commit 19b2d56

Browse files
committed
update mochi attn proc
1 parent f637479 commit 19b2d56

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
@@ -3847,7 +3847,7 @@ def apply_rotary_emb(x, freqs_cos, freqs_sin):
38473847
# dropout
38483848
hidden_states = attn.to_out[1](hidden_states)
38493849

3850-
if hasattr(attn, "to_add_out"):
3850+
if attn.context_pre_only is not None and not attn.context_pre_only:
38513851
encoder_hidden_states = attn.to_add_out(encoder_hidden_states)
38523852

38533853
return hidden_states, encoder_hidden_states

0 commit comments

Comments
 (0)