
"""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							 =							AttentionProcessor

class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       Union[str, Any]:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       List[Any]:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       str:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       Union[str, Any]:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       List[str]:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       Tuple:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       Optional[int]:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)





class 				__a    (   __a					):



							'''simple docstring'''







							def __init__(    self     ,						*_lowerCamelCase     ,						**_lowerCamelCase					) ->       str:




													'''simple docstring'''
													__lowercase						      =					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"     ,						_lowerCamelCase     ,						standard_warn=_lowerCamelCase					)
													super().__init__(*_lowerCamelCase     ,						**_lowerCamelCase					)







"""simple docstring"""






from scipy.constants import g



def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__			)	->float:
			if mass < 0:
						# handling of negative values of mass
						raise ValueError("The mass of a body cannot be negative"			)
			if height < 0:
						# handling of negative values of height
						raise ValueError("The height above the ground cannot be negative"			)
			return mass * g * height


if __name__ == "__main__":
					from doctest import testmod

					testmod(name='''potential_energy''')





