'''simple docstring'''






from collections import OrderedDict
from typing import Mapping

from packaging import version

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


SCREAMING_SNAKE_CASE_						 =      logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_						 =      {
    """facebook/levit-128S""": """https://huggingface.co/facebook/levit-128S/resolve/main/config.json""",
    # See all LeViT models at https://huggingface.co/models?filter=levit
}




class  a			(							UpperCAmelCase__					):



  """simple docstring"""
  __lowerCAmelCase					   =       'levit'







  def __init__(				self ,     snake_case_=224 ,     snake_case_=3 ,     snake_case_=3 ,     snake_case_=2 ,     snake_case_=1 ,     snake_case_=16 ,     snake_case_=[128, 256, 384] ,     snake_case_=[4, 8, 12] ,     snake_case_=[4, 4, 4] ,     snake_case_=[16, 16, 16] ,     snake_case_=0 ,     snake_case_=[2, 2, 2] ,     snake_case_=[2, 2, 2] ,     snake_case_=0.0_2 ,     **snake_case_ ,     ):

    '''simple docstring'''







    super().__init__(**lowerCamelCase__       )
    __UpperCAmelCase:       Tuple		=			image_size
    __UpperCAmelCase:       Dict		=			num_channels
    __UpperCAmelCase:       int		=			kernel_size
    __UpperCAmelCase:       List[Any]		=			stride
    __UpperCAmelCase:       Union[str, Any]		=			padding
    __UpperCAmelCase:       Dict		=			hidden_sizes
    __UpperCAmelCase:       str		=			num_attention_heads
    __UpperCAmelCase:       Union[str, Any]		=			depths
    __UpperCAmelCase:       Optional[int]		=			key_dim
    __UpperCAmelCase:       int		=			drop_path_rate
    __UpperCAmelCase:       Optional[int]		=			patch_size
    __UpperCAmelCase:       Optional[int]		=			attention_ratio
    __UpperCAmelCase:       Any		=			mlp_ratio
    __UpperCAmelCase:       str		=			initializer_range
    __UpperCAmelCase:       Any		=			[
        ["Subsample", key_dim[0], hidden_sizes[0] // key_dim[0], 4, 2, 2],
        ["Subsample", key_dim[0], hidden_sizes[1] // key_dim[0], 4, 2, 2],
    ]




class  a			(							UpperCAmelCase__					):



  """simple docstring"""
  __lowerCAmelCase					   =       version.parse("""1.11"""					)







  @property
  def  lowercase_	(				self       ):

    '''simple docstring'''







    return OrderedDict(
        [
            ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
        ]       )







  @property
  def  lowercase_	(				self       ):

    '''simple docstring'''







    return 1e-4
def 		snake_case__	(		lowercase					):
   lowerCAmelCase_:							Union[str, Any]       =	[1]

   lowerCAmelCase_  ,	lowerCAmelCase_  ,	lowerCAmelCase_:							int       =	0, 0, 0
   lowerCAmelCase_:							Union[str, Any]       =	ugly_nums[ia] * 2
   lowerCAmelCase_:							str       =	ugly_nums[ia] * 3
   lowerCAmelCase_:							Dict       =	ugly_nums[ia] * 5

   for _ in range(1							,				lowercase					):
      lowerCAmelCase_:							Any       =	min(lowercase							,				lowercase							,				lowercase					)
      ugly_nums.append(lowercase					)
      if next_num == next_a:
         ia += 1
         lowerCAmelCase_:							str       =	ugly_nums[ia] * 2
      if next_num == next_a:
         ia += 1
         lowerCAmelCase_:							Optional[int]       =	ugly_nums[ia] * 3
      if next_num == next_a:
         ia += 1
         lowerCAmelCase_:							int       =	ugly_nums[ia] * 5
   return ugly_nums[-1]


if __name__ == "__main__":
 from doctest import testmod

 testmod(verbose=True)
 print(f'''{ugly_numbers(2_0_0) = }''')