




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


lowercase			:      Any			=					AttentionProcessor







class 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							List[Any]:
										snake_case :			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"""       ,__a       ,standard_warn=__a       )
										super().__init__(*__a       ,**__a       )







class 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							str:
										snake_case :			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 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							Optional[Any]:
										snake_case :			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 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							Union[str, Any]:
										snake_case :			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"""       ,__a       ,standard_warn=__a       )
										super().__init__(*__a       ,**__a       )







class 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							List[str]:
										snake_case :			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"""       ,__a       ,standard_warn=__a       )
										super().__init__(*__a       ,**__a       )







class 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							Tuple:
										snake_case :			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 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							Any:
										snake_case :			List[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 				_a   (_UpperCAmelCase  ):





					'''simple docstring'''



					def __init__(							self       ,*__a       ,**__a       )			->							List[Any]:
										snake_case :			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'''







def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5) + 32    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) + 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5) + 491.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) - 32) * 5 / 9    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(((float(__lowercase							) - 32) * 5 / 9) + 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) + 459.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) - 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(((float(__lowercase							) - 273.15) * 9 / 5) + 32    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) - 491.67) * 5 / 9    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) - 459.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 5 / 9)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 1.25 + 273.15)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 2.25 + 32)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 1.25)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 2.25 + 32 + 459.67)    ,      __lowercase							)


if __name__ == "__main__":
      import doctest

      doctest.testmod()



