





'''simple docstring'''




from ..utils import DummyObject, requires_backends


class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])






def 			_lowerCAmelCase     (    *__snake_case    :					int					,				**__snake_case    :					List[str]     )	->	Tuple:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					Union[str, Any]					,				**__snake_case    :					Dict     )	->	Dict:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					Any					,				**__snake_case    :					List[str]     )	->	str:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					int					,				**__snake_case    :					Tuple     )	->	Union[str, Any]:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					List[Any]					,				**__snake_case    :					Optional[int]     )	->	Any:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					Optional[Any]					,				**__snake_case    :					int     )	->	Tuple:
     requires_backends(__snake_case					,				['torch']     )






def 			_lowerCAmelCase     (    *__snake_case    :					Any					,				**__snake_case    :					List[Any]     )	->	Union[str, Any]:
     requires_backends(__snake_case					,				['torch']     )


class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])




class 					SCREAMING_SNAKE_CASE       (metaclass=a__				):
     lowerCAmelCase						     =			['''torch''']


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

          '''simple docstring'''






          requires_backends(self		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])


     @classmethod
     def 				SCREAMING_SNAKE_CASE    (		cls		,      *_UpperCAmelCase		,      **_UpperCAmelCase):

          '''simple docstring'''






          requires_backends(cls		,      ['torch'])






'''simple docstring'''




import unittest
from typing import Tuple

import torch

from diffusers.utils import floats_tensor, randn_tensor, torch_all_close, torch_device
from diffusers.utils.testing_utils import require_torch




@require_torch
class      UpperCamelCase__					:




					"""simple docstring"""


					@property
					def lowerCamelCase_			(						self				:			Union[str, Any]						):

							'''simple docstring'''



							return self.get_dummy_input()


					@property
					def lowerCamelCase_			(						self				:			List[Any]						):

							'''simple docstring'''



							if self.block_type == "down":
									return (4, 32, 16, 16)
							elif self.block_type == "mid":
									return (4, 32, 32, 32)
							elif self.block_type == "up":
									return (4, 32, 64, 64)

							raise ValueError(f'''\'{self.block_type}\' is not a supported block_type. Set it to \'up\', \'mid\', or \'down\'.'''						)


					def lowerCamelCase_			(						self				:			Union[str, Any]      ,						lowerCamelCase_				:			Dict=True      ,						lowerCamelCase_				:			List[Any]=False      ,						lowerCamelCase_				:			str=False      ,						lowerCamelCase_				:			Optional[int]=False      ,						):

							'''simple docstring'''



							SCREAMING_SNAKE_CASE :				Dict		=			4
							SCREAMING_SNAKE_CASE :				Any		=			32
							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			(32, 32)

							SCREAMING_SNAKE_CASE :				int		=			torch.manual_seed(0						)
							SCREAMING_SNAKE_CASE :				Optional[Any]		=			torch.device(lowerCamelCase_						)
							SCREAMING_SNAKE_CASE :				Tuple		=			(batch_size, num_channels) + sizes
							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			randn_tensor(lowerCamelCase_      ,						generator=lowerCamelCase_      ,						device=lowerCamelCase_						)
							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			{"""hidden_states""": hidden_states}

							if include_temb:
									SCREAMING_SNAKE_CASE :				Union[str, Any]		=			1_28
									SCREAMING_SNAKE_CASE :				Optional[Any]		=			randn_tensor((batch_size, temb_channels)      ,						generator=lowerCamelCase_      ,						device=lowerCamelCase_						)

							if include_res_hidden_states_tuple:
									SCREAMING_SNAKE_CASE :				str		=			torch.manual_seed(1						)
									SCREAMING_SNAKE_CASE :				int		=			(randn_tensor(lowerCamelCase_      ,						generator=lowerCamelCase_      ,						device=lowerCamelCase_						),)

							if include_encoder_hidden_states:
									SCREAMING_SNAKE_CASE :				Optional[int]		=			floats_tensor((batch_size, 32, 32)						).to(lowerCamelCase_						)

							if include_skip_sample:
									SCREAMING_SNAKE_CASE :				str		=			randn_tensor(((batch_size, 3) + sizes)      ,						generator=lowerCamelCase_      ,						device=lowerCamelCase_						)

							return dummy_input


					def lowerCamelCase_			(						self				:			Optional[Any]						):

							'''simple docstring'''



							SCREAMING_SNAKE_CASE :				Dict		=			{
							    """in_channels""": 32,
							    """out_channels""": 32,
							    """temb_channels""": 1_28,
							}
							if self.block_type == "up":
									SCREAMING_SNAKE_CASE :				List[str]		=			32

							if self.block_type == "mid":
									init_dict.pop("""out_channels"""						)

							SCREAMING_SNAKE_CASE :				Tuple		=			self.dummy_input
							return init_dict, inputs_dict


					def lowerCamelCase_			(						self				:			Any      ,						lowerCamelCase_				:			Any						):

							'''simple docstring'''



							SCREAMING_SNAKE_CASE,							SCREAMING_SNAKE_CASE :				Optional[Any]		=			self.prepare_init_args_and_inputs_for_common()
							SCREAMING_SNAKE_CASE :				Tuple		=			self.block_class(**lowerCamelCase_						)
							unet_block.to(lowerCamelCase_						)
							unet_block.eval()

							with torch.no_grad():
									SCREAMING_SNAKE_CASE :				List[str]		=			unet_block(**lowerCamelCase_						)

							if isinstance(lowerCamelCase_      ,						lowerCamelCase_						):
									SCREAMING_SNAKE_CASE :				Dict		=			output[0]

							self.assertEqual(output.shape      ,						self.output_shape						)

							SCREAMING_SNAKE_CASE :				Dict		=			output[0, -1, -3:, -3:]
							SCREAMING_SNAKE_CASE :				List[Any]		=			torch.tensor(lowerCamelCase_						).to(lowerCamelCase_						)
							assert torch_all_close(output_slice.flatten()      ,						lowerCamelCase_      ,						atol=5e-3						)



					@unittest.skipIf(torch_device == """mps"""      ,						"""Training is not supported in mps"""						)
					def lowerCamelCase_			(						self				:			int						):

							'''simple docstring'''



							SCREAMING_SNAKE_CASE,							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			self.prepare_init_args_and_inputs_for_common()
							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			self.block_class(**lowerCamelCase_						)
							model.to(lowerCamelCase_						)
							model.train()
							SCREAMING_SNAKE_CASE :				Tuple		=			model(**lowerCamelCase_						)

							if isinstance(lowerCamelCase_      ,						lowerCamelCase_						):
									SCREAMING_SNAKE_CASE :				Optional[Any]		=			output[0]

							SCREAMING_SNAKE_CASE :				Union[str, Any]		=			torch.device(lowerCamelCase_						)
							SCREAMING_SNAKE_CASE :				Optional[int]		=			randn_tensor(output.shape      ,						device=lowerCamelCase_						)
							SCREAMING_SNAKE_CASE :				str		=			torch.nn.functional.mse_loss(lowerCamelCase_      ,						lowerCamelCase_						)
							loss.backward()



