

"""simple docstring"""




def 	A       (     snake_case__    ):




			'''simple docstring'''


			if num < 0:
						return False

			SCREAMING_SNAKE_CASE__								=      num
			SCREAMING_SNAKE_CASE__								=      0
			while num > 0:
						SCREAMING_SNAKE_CASE__								=      rev_num * 10 + (num % 10)
						num //= 10

			return num_copy == rev_num


if __name__ == "__main__":
						import doctest

						doctest.testmod()





"""simple docstring"""




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


A_							:			Union[str, Any]											= logging.get_logger(__name__)

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





class    lowerCamelCase						(A__			):
			lowerCamelCase__   :		List[str]							=							'swin2sr'

			lowerCamelCase__   :		Optional[Any]							=							{
			    'hidden_size': 'embed_dim',
			    'num_attention_heads': 'num_heads',
			    'num_hidden_layers': 'num_layers',
			}

			def __init__(					self				:						Tuple    ,				__UpperCAmelCase				:						Optional[int]=6_4    ,				__UpperCAmelCase				:						Tuple=1    ,				__UpperCAmelCase				:						Optional[Any]=3    ,				__UpperCAmelCase				:						List[str]=1_8_0    ,				__UpperCAmelCase				:						List[str]=[6, 6, 6, 6, 6, 6]    ,				__UpperCAmelCase				:						Optional[Any]=[6, 6, 6, 6, 6, 6]    ,				__UpperCAmelCase				:						Tuple=8    ,				__UpperCAmelCase				:						Union[str, Any]=2.0    ,				__UpperCAmelCase				:						int=True    ,				__UpperCAmelCase				:						Optional[Any]=0.0    ,				__UpperCAmelCase				:						str=0.0    ,				__UpperCAmelCase				:						Dict=0.1    ,				__UpperCAmelCase				:						Dict="gelu"    ,				__UpperCAmelCase				:						Tuple=False    ,				__UpperCAmelCase				:						List[str]=0.02    ,				__UpperCAmelCase				:						List[Any]=1e-5    ,				__UpperCAmelCase				:						str=2    ,				__UpperCAmelCase				:						Optional[int]=1.0    ,				__UpperCAmelCase				:						Union[str, Any]="1conv"    ,				__UpperCAmelCase				:						List[Any]="pixelshuffle"    ,				**__UpperCAmelCase				:						Any    ,				)   ->    Optional[int]:
						super().__init__(**__UpperCAmelCase       )

						SCREAMING_SNAKE_CASE__								=      image_size
						SCREAMING_SNAKE_CASE__								=      patch_size
						SCREAMING_SNAKE_CASE__								=      num_channels
						SCREAMING_SNAKE_CASE__								=      embed_dim
						SCREAMING_SNAKE_CASE__								=      depths
						SCREAMING_SNAKE_CASE__								=      len(__UpperCAmelCase       )
						SCREAMING_SNAKE_CASE__								=      num_heads
						SCREAMING_SNAKE_CASE__								=      window_size
						SCREAMING_SNAKE_CASE__								=      mlp_ratio
						SCREAMING_SNAKE_CASE__								=      qkv_bias
						SCREAMING_SNAKE_CASE__								=      hidden_dropout_prob
						SCREAMING_SNAKE_CASE__								=      attention_probs_dropout_prob
						SCREAMING_SNAKE_CASE__								=      drop_path_rate
						SCREAMING_SNAKE_CASE__								=      hidden_act
						SCREAMING_SNAKE_CASE__								=      use_absolute_embeddings
						SCREAMING_SNAKE_CASE__								=      layer_norm_eps
						SCREAMING_SNAKE_CASE__								=      initializer_range
						SCREAMING_SNAKE_CASE__								=      upscale
						SCREAMING_SNAKE_CASE__								=      img_range
						SCREAMING_SNAKE_CASE__								=      resi_connection
						SCREAMING_SNAKE_CASE__								=      upsampler


