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
a41850a2
Unverified
Commit
a41850a2
authored
Mar 17, 2023
by
Patrick von Platen
Committed by
GitHub
Mar 17, 2023
Browse files
Improve deprecation error message when using cross_attention import (#2710)
Improve error message
parent
a4b2c2f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/cross_attention.py
src/diffusers/models/cross_attention.py
+1
-1
No files found.
src/diffusers/models/cross_attention.py
View file @
a41850a2
...
@@ -32,7 +32,7 @@ from .attention_processor import ( # noqa: F401
...
@@ -32,7 +32,7 @@ from .attention_processor import ( # noqa: F401
deprecate
(
deprecate
(
"cross_attention"
,
"cross_attention"
,
"0.18.0"
,
"0.18.0"
,
"Importing from cross_attention is deprecated. Please import from attention_processor instead."
,
"Importing from cross_attention is deprecated. Please import from
diffusers.models.
attention_processor instead."
,
standard_warn
=
False
,
standard_warn
=
False
,
)
)
...
...
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