Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/diffusers/models/attention_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,7 @@ def __call__(
hidden_states: torch.FloatTensor,
encoder_hidden_states: Optional[torch.FloatTensor] = None,
attention_mask: Optional[torch.FloatTensor] = None,
temb = None, # other users of attention pass a kwarg for token embedding (like UNetMidBlock2D), which python requires to be expected; this is not the right place to fix this problem
) -> torch.FloatTensor:
residual = hidden_states

Expand Down