"vscode:/vscode.git/clone" did not exist on "088396824d91f01fe83773017dd0c6129bc8f234"
Commit 0424615a authored by ydshieh's avatar ydshieh
Browse files

revert the accidental commit

parent 8187865a
......@@ -267,7 +267,7 @@ class CrossAttention(nn.Module):
if self._slice_size is None or query.shape[0] // self._slice_size == 1:
hidden_states = self._attention(query, key, value)
else:
hidden_states = self._sliced_attention(query, key, value, sequence_length, dim=query.shape[-1] * self.heads)
hidden_states = self._sliced_attention(query, key, value, sequence_length, dim)
return self.to_out(hidden_states)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment