






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


a :				Optional[Any]      					=		AttentionProcessor


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      Dict=       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     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)


class     __UpperCAmelCase(   _lowerCAmelCase							):




						"""simple docstring"""




						def __init__(   self       ,  *snake_case__       ,  **snake_case__			):
												'''simple docstring'''
												lowercase__				:      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"       ,  A_       ,  standard_warn=A_			)
												super().__init__(*A_       ,  **A_			)











'''simple docstring'''

from __future__ import annotations






def 		_snake_case		(					_SCREAMING_SNAKE_CASE     :						list[int]							,		_SCREAMING_SNAKE_CASE     :						int							)			->						list[int]:







	"""simple docstring"""
	lowerCAmelCase    =	{}
	for index, val in enumerate(_SCREAMING_SNAKE_CASE							):
		lowerCAmelCase    =	target - val
		if compl in chk_map:
			return [chk_map[compl], index]
		lowerCAmelCase    =	index
	return []


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				print(F'''{two_sum([2, 7, 11, 15], 9) = }''')