






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


__lowerCamelCase	:		str										=   logging.get_logger(__name__)

__lowerCamelCase	:		List[Any]										=   {
    """sayakpaul/vit-msn-base""": """https://huggingface.co/sayakpaul/vit-msn-base/resolve/main/config.json""",
    # See all ViT MSN models at https://huggingface.co/models?filter=vit_msn
}







class  _lowercase   (   _A						):
      _a							:						List[Any]										=							'vit_msn'
      def __init__(     self				,			a=7_6_8				,			a=1_2				,			a=1_2				,			a=3_0_7_2				,			a="gelu"				,			a=0.0				,			a=0.0				,			a=0.02				,			a=1e-06				,			a=2_2_4				,			a=1_6				,			a=3				,			a=True				,			**a				,			):
       super().__init__(**a   )

       snake_case__  :    Union[str, Any]							       =hidden_size
       snake_case__  :    int							       =num_hidden_layers
       snake_case__  :    List[Any]							       =num_attention_heads
       snake_case__  :    Optional[int]							       =intermediate_size
       snake_case__  :    List[str]							       =hidden_act
       snake_case__  :    int							       =hidden_dropout_prob
       snake_case__  :    Dict							       =attention_probs_dropout_prob
       snake_case__  :    str							       =initializer_range
       snake_case__  :    str							       =layer_norm_eps
       snake_case__  :    Union[str, Any]							       =image_size
       snake_case__  :    Any							       =patch_size
       snake_case__  :    str							       =num_channels
       snake_case__  :    int							       =qkv_bias













from string import ascii_uppercase

__lowerCamelCase	:		List[Any]										=   {str(ord(c) - 55): c for c in ascii_uppercase}







def 			A__							(      _a  :					int		,  _a  :					int	):





 '''simple docstring'''







 if isinstance(_a		,  _a	):
  raise TypeError("""int() can't convert non-string with explicit base"""	)
 if num < 0:
  raise ValueError("""parameter must be positive int"""	)
 if isinstance(_a		,  _a	):
  raise TypeError("""'str' object cannot be interpreted as an integer"""	)
 if isinstance(_a		,  _a	):
  raise TypeError("""'float' object cannot be interpreted as an integer"""	)
 if base in (0, 1):
  raise ValueError("""base must be >= 2"""	)
 if base > 36:
  raise ValueError("""base must be <= 36"""	)
 snake_case__  :    Union[str, Any]							       =""""""
 snake_case__  :    List[str]							       =0
 snake_case__  :    List[Any]							       =0
 while div != 1:
  snake_case__       ,   snake_case__  :    Union[str, Any]							       =divmod(_a		,  _a	)
  if base >= 11 and 9 < mod < 36:
   snake_case__  :    Dict							       =ALPHABET_VALUES[str(_a	)]
  else:
   snake_case__  :    Optional[Any]							       =str(_a	)
  new_value += actual_value
  snake_case__  :    Dict							       =num // base
  snake_case__  :    Tuple							       =div
  if div == 0:
   return str(new_value[::-1]	)
  elif div == 1:
   new_value += str(_a	)
   return str(new_value[::-1]	)

 return new_value[::-1]


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       for base in range(2, 37):
              for num in range(10_00):
                     assert int(decimal_to_any(num, base), base) == num, (
                         num,
                         base,
                         decimal_to_any(num, base),
                         int(decimal_to_any(num, base), base),
                     )





