


'''simple docstring'''
from string import ascii_uppercase

UpperCAmelCase_ :     str								=      {str(ord(c) - 5_5): c for c in ascii_uppercase}


def 			_lowercase       (				UpperCamelCase__       :					int,				UpperCamelCase__       :					int			):
 if isinstance(UpperCamelCase__,				UpperCamelCase__			):
  raise TypeError('int() can\'t convert non-string with explicit base'			)
 if num < 0:
  raise ValueError('parameter must be positive int'			)
 if isinstance(UpperCamelCase__,				UpperCamelCase__			):
  raise TypeError('\'str\' object cannot be interpreted as an integer'			)
 if isinstance(UpperCamelCase__,				UpperCamelCase__			):
  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'			)
 __A  :		Dict       =			''
 __A  :		Any       =			0
 __A  :		List[str]       =			0
 while div != 1:
  __A     ,__A  :		Any       =			divmod(UpperCamelCase__,				UpperCamelCase__			)
  if base >= 11 and 9 < mod < 36:
   __A  :		Any       =			ALPHABET_VALUES[str(UpperCamelCase__			)]
  else:
   __A  :		Any       =			str(UpperCamelCase__			)
  new_value += actual_value
  __A  :		Tuple       =			num // base
  __A  :		Dict       =			div
  if div == 0:
   return str(new_value[::-1]			)
  elif div == 1:
   new_value += str(UpperCamelCase__			)
   return str(new_value[::-1]			)

 return new_value[::-1]


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 for base in range(2, 3_7):
  for num in range(1_0_0_0):
   assert int(decimal_to_any(num, base), base) == num, (
       num,
       base,
       decimal_to_any(num, base),
       int(decimal_to_any(num, base), base),
   )










'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase_ :     Dict								=      logging.get_logger(__name__)

UpperCAmelCase_ :     Optional[int]								=      {
    '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 						_lowerCamelCase					(    snake_case_				):




 '''simple docstring'''
 __lowercase				:		Tuple    							=						'''vit_msn'''


 def __init__(      self      ,      __lowercase=768      ,      __lowercase=12      ,      __lowercase=12      ,      __lowercase=3_072      ,      __lowercase="gelu"      ,      __lowercase=0.0      ,      __lowercase=0.0      ,      __lowercase=0.0_2      ,      __lowercase=1E-06      ,      __lowercase=224      ,      __lowercase=16      ,      __lowercase=3      ,      __lowercase=True      ,      **__lowercase      ,      ):

  """simple docstring"""







  super().__init__(**__lowercase						)

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






