




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      a__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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__       (   snake_case__ ):






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




											"""simple docstring"""



											__lowerCAmelCase							  =			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 typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


UpperCamelCase__            =     {"""configuration_vit_hybrid""": ["""VIT_HYBRID_PRETRAINED_CONFIG_ARCHIVE_MAP""", """ViTHybridConfig"""]}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCamelCase__            =     [
					    """VIT_HYBRID_PRETRAINED_MODEL_ARCHIVE_LIST""",
					    """ViTHybridForImageClassification""",
					    """ViTHybridModel""",
					    """ViTHybridPreTrainedModel""",
					]

try:
					if not is_vision_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCamelCase__            =     ["""ViTHybridImageProcessor"""]


if TYPE_CHECKING:
					from .configuration_vit_hybrid import VIT_HYBRID_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTHybridConfig

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_vit_hybrid import (
										    VIT_HYBRID_PRETRAINED_MODEL_ARCHIVE_LIST,
										    ViTHybridForImageClassification,
										    ViTHybridModel,
										    ViTHybridPreTrainedModel,
										)

					try:
										if not is_vision_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .image_processing_vit_hybrid import ViTHybridImageProcessor


else:
					import sys

					UpperCamelCase__            =     _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




