Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
0424615a
Commit
0424615a
authored
Sep 19, 2022
by
ydshieh
Browse files
revert the accidental commit
parent
8187865a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/attention.py
src/diffusers/models/attention.py
+1
-1
No files found.
src/diffusers/models/attention.py
View file @
0424615a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment