






from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_a        =			logging.get_logger(__name__)

_a        =			{
    """andreasmadsen/efficient_mlm_m0.40""": (
        """https://huggingface.co/andreasmadsen/efficient_mlm_m0.40/resolve/main/config.json"""
    ),
}







class 	_UpperCAmelCase  (  _A		):




      """simple docstring"""



      A          =    '''roberta-prelayernorm'''
      def __init__(   self    ,	_lowerCAmelCase=50_265    ,	_lowerCAmelCase=768    ,	_lowerCAmelCase=12    ,	_lowerCAmelCase=12    ,	_lowerCAmelCase=3_072    ,	_lowerCAmelCase="gelu"    ,	_lowerCAmelCase=0.1    ,	_lowerCAmelCase=0.1    ,	_lowerCAmelCase=512    ,	_lowerCAmelCase=2    ,	_lowerCAmelCase=0.02    ,	_lowerCAmelCase=1e-12    ,	_lowerCAmelCase=1    ,	_lowerCAmelCase=0    ,	_lowerCAmelCase=2    ,	_lowerCAmelCase="absolute"    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=None    ,	**_lowerCAmelCase    ,	):



          '''simple docstring'''
          super().__init__(pad_token_id=_lowerCAmelCase    ,	bos_token_id=_lowerCAmelCase    ,	eos_token_id=_lowerCAmelCase    ,	**_lowerCAmelCase		)

          lowerCAmelCase__   :Union[str, Any]      							=				vocab_size
          lowerCAmelCase__   :List[Any]      							=				hidden_size
          lowerCAmelCase__   :Union[str, Any]      							=				num_hidden_layers
          lowerCAmelCase__   :Any      							=				num_attention_heads
          lowerCAmelCase__   :Union[str, Any]      							=				hidden_act
          lowerCAmelCase__   :Any      							=				intermediate_size
          lowerCAmelCase__   :List[Any]      							=				hidden_dropout_prob
          lowerCAmelCase__   :Optional[Any]      							=				attention_probs_dropout_prob
          lowerCAmelCase__   :Tuple      							=				max_position_embeddings
          lowerCAmelCase__   :int      							=				type_vocab_size
          lowerCAmelCase__   :str      							=				initializer_range
          lowerCAmelCase__   :Any      							=				layer_norm_eps
          lowerCAmelCase__   :Optional[Any]      							=				position_embedding_type
          lowerCAmelCase__   :Union[str, Any]      							=				use_cache
          lowerCAmelCase__   :Tuple      							=				classifier_dropout







class 	_UpperCAmelCase  (  _A		):




      """simple docstring"""



      @property
      def 			snake_case_      (   self		):



          '''simple docstring'''
          if self.task == "multiple-choice":
              lowerCAmelCase__   :Optional[Any]      							=				{0: "batch", 1: "choice", 2: "sequence"}
          else:
              lowerCAmelCase__   :Dict      							=				{0: "batch", 1: "sequence"}
          return OrderedDict(
              [
                  ("input_ids", dynamic_axis),
                  ("attention_mask", dynamic_axis),
              ]		)











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


_a    :   Dict        =			logging.get_logger(__name__)

_a    :   Optional[Any]        =			{
    """caidas/swin2sr-classicalsr-x2-64""": (
        """https://huggingface.co/caidas/swin2sr-classicalsr-x2-64/resolve/main/config.json"""
    ),
}







class 	_UpperCAmelCase  (  _A		):




      """simple docstring"""



      A          =    '''swin2sr'''

      A          =    {
          '''hidden_size''': '''embed_dim''',
          '''num_attention_heads''': '''num_heads''',
          '''num_hidden_layers''': '''num_layers''',
      }
      def __init__(   self    ,	_lowerCAmelCase=64    ,	_lowerCAmelCase=1    ,	_lowerCAmelCase=3    ,	_lowerCAmelCase=180    ,	_lowerCAmelCase=[6, 6, 6, 6, 6, 6]    ,	_lowerCAmelCase=[6, 6, 6, 6, 6, 6]    ,	_lowerCAmelCase=8    ,	_lowerCAmelCase=2.0    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=0.0    ,	_lowerCAmelCase=0.0    ,	_lowerCAmelCase=0.1    ,	_lowerCAmelCase="gelu"    ,	_lowerCAmelCase=False    ,	_lowerCAmelCase=0.02    ,	_lowerCAmelCase=1e-5    ,	_lowerCAmelCase=2    ,	_lowerCAmelCase=1.0    ,	_lowerCAmelCase="1conv"    ,	_lowerCAmelCase="pixelshuffle"    ,	**_lowerCAmelCase    ,	):



          '''simple docstring'''
          super().__init__(**_lowerCAmelCase		)

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



