

from ...configuration_utils import PretrainedConfig
from ...utils import logging


a_      =     logging.get_logger(__name__)

a_      =     {
    'caidas/swin2sr-classicalsr-x2-64': (
        'https://huggingface.co/caidas/swin2sr-classicalsr-x2-64/resolve/main/config.json'
    ),
}






class _UpperCamelCase				(				__A ):
			'''simple docstring'''







			lowerCamelCase__							     ='swin2sr'

			lowerCamelCase__							     ={
			    'hidden_size': 'embed_dim',
			    'num_attention_heads': 'num_heads',
			    'num_hidden_layers': 'num_layers',
			}
			def __init__(      self				:			Any   ,   a				:			List[Any]=64   ,   a				:			List[str]=1   ,   a				:			int=3   ,   a				:			Union[str, Any]=180   ,   a				:			Union[str, Any]=[6, 6, 6, 6, 6, 6]   ,   a				:			Union[str, Any]=[6, 6, 6, 6, 6, 6]   ,   a				:			Any=8   ,   a				:			List[Any]=2.0   ,   a				:			List[Any]=True   ,   a				:			Optional[Any]=0.0   ,   a				:			Union[str, Any]=0.0   ,   a				:			Union[str, Any]=0.1   ,   a				:			List[Any]="gelu"   ,   a				:			Any=False   ,   a				:			Any=0.02   ,   a				:			Tuple=1e-5   ,   a				:			Optional[int]=2   ,   a				:			List[str]=1.0   ,   a				:			int="1conv"   ,   a				:			Dict="pixelshuffle"   ,   **a				:			str   ,   )				->							Optional[Any]:

				"""simple docstring"""

				super().__init__(**a						)

				SCREAMING_SNAKE_CASE :   Tuple					  =							image_size
				SCREAMING_SNAKE_CASE :   int					  =							patch_size
				SCREAMING_SNAKE_CASE :   Optional[Any]					  =							num_channels
				SCREAMING_SNAKE_CASE :   Tuple					  =							embed_dim
				SCREAMING_SNAKE_CASE :   Dict					  =							depths
				SCREAMING_SNAKE_CASE :   Tuple					  =							len(a						)
				SCREAMING_SNAKE_CASE :   Tuple					  =							num_heads
				SCREAMING_SNAKE_CASE :   Dict					  =							window_size
				SCREAMING_SNAKE_CASE :   Optional[int]					  =							mlp_ratio
				SCREAMING_SNAKE_CASE :   str					  =							qkv_bias
				SCREAMING_SNAKE_CASE :   Optional[Any]					  =							hidden_dropout_prob
				SCREAMING_SNAKE_CASE :   List[Any]					  =							attention_probs_dropout_prob
				SCREAMING_SNAKE_CASE :   Optional[Any]					  =							drop_path_rate
				SCREAMING_SNAKE_CASE :   str					  =							hidden_act
				SCREAMING_SNAKE_CASE :   Optional[int]					  =							use_absolute_embeddings
				SCREAMING_SNAKE_CASE :   Tuple					  =							layer_norm_eps
				SCREAMING_SNAKE_CASE :   Optional[Any]					  =							initializer_range
				SCREAMING_SNAKE_CASE :   Any					  =							upscale
				SCREAMING_SNAKE_CASE :   int					  =							img_range
				SCREAMING_SNAKE_CASE :   List[Any]					  =							resi_connection
				SCREAMING_SNAKE_CASE :   List[str]					  =							upsampler






'''simple docstring'''




def 	__lowerCamelCase			(      __lowerCAmelCase       :							int		)		->  int:
   assert isinstance(__lowerCAmelCase      ,    __lowerCAmelCase		), F'''The input value of [n={number}] is not an integer'''

   if number == 1:
      return 2
   elif number < 1:
      snake_case 						=   F'''The input value of [n={number}] has to be > 0'''
      raise ValueError(__lowerCAmelCase		)
   else:
      snake_case 						=   sylvester(number - 1		)
      snake_case 						=   num - 1
      snake_case 						=   num
      return lower * upper + 1


if __name__ == "__main__":
 print(F"""The 8th number in Sylvester's sequence: {sylvester(8)}""")

