Skip to content

Commit 0424615

Browse files
committed
revert the accidental commit
1 parent 8187865 commit 0424615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def forward(self, hidden_states, context=None, mask=None):
267267
if self._slice_size is None or query.shape[0] // self._slice_size == 1:
268268
hidden_states = self._attention(query, key, value)
269269
else:
270-
hidden_states = self._sliced_attention(query, key, value, sequence_length, dim=query.shape[-1] * self.heads)
270+
hidden_states = self._sliced_attention(query, key, value, sequence_length, dim)
271271

272272
return self.to_out(hidden_states)
273273

0 commit comments

Comments
 (0)