1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Improve deprecation error message when using cross_attention import (#2710)

Improve error message
This commit is contained in:
Patrick von Platen
2023-03-17 00:17:53 +01:00
committed by GitHub
parent a4b2c2f150
commit a41850a21d

View File

@@ -32,7 +32,7 @@ from .attention_processor import ( # noqa: F401
deprecate(
"cross_attention",
"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,
)