

"""simple docstring"""





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,
)


_SCREAMING_SNAKE_CASE							:	List[Any]										=			AttentionProcessor

class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Dict    ,	*lowercase_  :       Tuple    ,	**lowercase_  :       Tuple    ):
								UpperCamelCase__		:     Tuple								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Optional[int]    ,	*lowercase_  :       Tuple    ,	**lowercase_  :       Optional[int]    ):
								UpperCamelCase__		:     Optional[Any]								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Dict    ,	*lowercase_  :       str    ,	**lowercase_  :       List[str]    ):
								UpperCamelCase__		:     str								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Union[str, Any]    ,	*lowercase_  :       List[str]    ,	**lowercase_  :       Dict    ):
								UpperCamelCase__		:     Union[str, Any]								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Dict    ,	*lowercase_  :       Dict    ,	**lowercase_  :       str    ):
								UpperCamelCase__		:     List[str]								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       str    ,	*lowercase_  :       Union[str, Any]    ,	**lowercase_  :       str    ):
								UpperCamelCase__		:     int								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Union[str, Any]    ,	*lowercase_  :       Optional[Any]    ,	**lowercase_  :       List[Any]    ):
								UpperCamelCase__		:     Optional[int]								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )



class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Tuple    ,	*lowercase_  :       Dict    ,	**lowercase_  :       Optional[int]    ):
								UpperCamelCase__		:     int								=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'''    ,	__UpperCAmelCase    ,	standard_warn=__UpperCAmelCase    )
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )






"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


__lowercase          = logging.get_logger(__name__)






class 		_A    (    _a    ):







    """simple docstring"""




    def __init__(   self							:       Optional[int]							,					*__UpperCAmelCase							:       Dict							,					**__UpperCAmelCase							:       Any):
      warnings.warn(
          "The class LevitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
          " use LevitImageProcessor instead."							,					__UpperCAmelCase							,					)
      super().__init__(*__UpperCAmelCase							,					**__UpperCAmelCase)






