


from ..utils import deprecate
from .attention_processor import (  # noqa: F401
    Attention,
    AttentionProcessor,
    AttnAddedKVProcessor,
    AttnProcessor2_0,
    LoRAAttnProcessor,
    LoRALinearLayer,
    LoRAXFormersAttnProcessor,
    SlicedAttnAddedKVProcessor,
    SlicedAttnProcessor,
    XFormersAttnProcessor,
)
from .attention_processor import AttnProcessor as AttnProcessorRename  # noqa: F401


deprecate(
    '''cross_attention''',
    '''0.20.0''',
    '''Importing from cross_attention is deprecated. Please import from diffusers.models.attention_processor instead.''',
    standard_warn=False,
)


snake_case_  :     Dict							  =							AttentionProcessor

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : List[Any]			,      *_a   : int			,      **_a   : Optional[Any]					)							->       Optional[Any]:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : str			,      *_a   : int			,      **_a   : Union[str, Any]					)							->       Dict:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : Tuple			,      *_a   : int			,      **_a   : Tuple					)							->       List[str]:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : int			,      *_a   : Any			,      **_a   : List[Any]					)							->       Optional[int]:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : List[str]			,      *_a   : str			,      **_a   : Optional[int]					)							->       Any:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : Any			,      *_a   : Optional[int]			,      **_a   : Union[str, Any]					)							->       List[Any]:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : Union[str, Any]			,      *_a   : Union[str, Any]			,      **_a   : int					)							->       str:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)

class   A__							(						UpperCamelCase__					):




						def __init__(    self   : List[Any]			,      *_a   : str			,      **_a   : Tuple					)							->       List[str]:


										"""simple docstring"""





										_SCREAMING_SNAKE_CASE     					=f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'					)					)} instead."
										deprecate('''cross_attention'''			,      '''0.20.0'''			,      __A			,      standard_warn=__A					)
										super().__init__(*__A			,      **__A					)






from ..utils import DummyObject, requires_backends

class   A__							(						metaclass=UpperCamelCase__					):
						UpperCAmelCase     =  ["torch", "librosa"]




						def __init__(    self   : Dict			,      *_a   : Union[str, Any]			,      **_a   : List[str]					)							->       Optional[int]:


										"""simple docstring"""





										requires_backends(self			,      ['''torch''', '''librosa''']					)




						@classmethod
						def 							__UpperCamelCase			(    cls   : Dict			,      *_a   : Tuple			,      **_a   : Tuple					)							->       Optional[int]:


										"""simple docstring"""





										requires_backends(cls			,      ['''torch''', '''librosa''']					)




						@classmethod
						def 							__UpperCamelCase			(    cls   : List[Any]			,      *_a   : Any			,      **_a   : List[str]					)							->       Dict:


										"""simple docstring"""





										requires_backends(cls			,      ['''torch''', '''librosa''']					)

class   A__							(						metaclass=UpperCamelCase__					):
						UpperCAmelCase     =  ["torch", "librosa"]




						def __init__(    self   : List[Any]			,      *_a   : int			,      **_a   : int					)							->       Optional[Any]:


										"""simple docstring"""





										requires_backends(self			,      ['''torch''', '''librosa''']					)




						@classmethod
						def 							__UpperCamelCase			(    cls   : str			,      *_a   : Dict			,      **_a   : Optional[Any]					)							->       Union[str, Any]:


										"""simple docstring"""





										requires_backends(cls			,      ['''torch''', '''librosa''']					)




						@classmethod
						def 							__UpperCamelCase			(    cls   : List[str]			,      *_a   : Optional[int]			,      **_a   : Union[str, Any]					)							->       Optional[Any]:


										"""simple docstring"""





										requires_backends(cls			,      ['''torch''', '''librosa''']					)