




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


UpperCAmelCase_									=	logging.get_logger(__name__)

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





class     lowerCamelCase__(					__lowerCamelCase):
      UpperCAmelCase__      :	Union[str, Any]    		=   'swin2sr'

      UpperCAmelCase__      :	List[Any]    		=   {
          'hidden_size': 'embed_dim',
          'num_attention_heads': 'num_heads',
          'num_hidden_layers': 'num_layers',
      }
      def __init__(				self: List[str]    ,       UpperCamelCase_: List[str]=64    ,       UpperCamelCase_: str=1    ,       UpperCamelCase_: int=3    ,       UpperCamelCase_: Any=1_80    ,       UpperCamelCase_: Optional[Any]=[6, 6, 6, 6, 6, 6]    ,       UpperCamelCase_: Optional[int]=[6, 6, 6, 6, 6, 6]    ,       UpperCamelCase_: Union[str, Any]=8    ,       UpperCamelCase_: Union[str, Any]=2.0    ,       UpperCamelCase_: Optional[int]=True    ,       UpperCamelCase_: Tuple=0.0    ,       UpperCamelCase_: Optional[Any]=0.0    ,       UpperCamelCase_: Union[str, Any]=0.1    ,       UpperCamelCase_: int="gelu"    ,       UpperCamelCase_: Optional[Any]=False    ,       UpperCamelCase_: Any=0.02    ,       UpperCamelCase_: Any=1E-5    ,       UpperCamelCase_: str=2    ,       UpperCamelCase_: int=1.0    ,       UpperCamelCase_: str="1conv"    ,       UpperCamelCase_: Any="pixelshuffle"    ,       **UpperCamelCase_: Optional[Any]    ,       ):
             super().__init__(**UpperCamelCase_   )

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







def 					lowerCamelCase__       (						A__       :					list	):





       '''simple docstring'''



       __lowerCamelCase   =						len(A__	)
       for _ in range(A__	):
              for i in range(_ % 2  ,			arr_size - 1  ,			2	):
                     if arr[i + 1] < arr[i]:
                            __lowerCamelCase,   __lowerCamelCase   =						arr[i + 1], arr[i]

       return arr


if __name__ == "__main__":
       UpperCAmelCase_									=	list(range(10, 0, -1))
       print(f"""Original: {arr}. Sorted: {odd_even_transposition(arr)}""")

