




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


UpperCamelCase__						=		AttentionProcessor


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						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'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )

import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


__lowerCamelCase     :					Union[str, Any]				  =						logging.get_logger(__name__)







class __snake_case							(		lowerCamelCase_						):




   def __init__(       self     :							str			,      *_lowercase     :							str			,      **_lowercase     :							str ):



     """simple docstring"""






     warnings.warn(
         """The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
         """ use ViTImageProcessor instead."""			,      _lowercase			,      )
     super().__init__(*_lowercase			,      **_lowercase )
