



"""simple docstring"""
from typing import List

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


A:   Tuple								=		logging.get_logger(__name__)

A:   Tuple								=		{
    "snap-research/efficientformer-l1-300": (
        "https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json"
    ),
}



class       SCREAMING_SNAKE_CASE__  (					UpperCAmelCase__ ):
   __lowerCAmelCase  :   Optional[int]						=						'efficientformer'

   def __init__(   self      ,     _SCREAMING_SNAKE_CASE = [3, 2, 6, 4]      ,     _SCREAMING_SNAKE_CASE = [48, 96, 224, 448]      ,     _SCREAMING_SNAKE_CASE = [True, True, True, True]      ,     _SCREAMING_SNAKE_CASE = 448      ,     _SCREAMING_SNAKE_CASE = 32      ,     _SCREAMING_SNAKE_CASE = 4      ,     _SCREAMING_SNAKE_CASE = 7      ,     _SCREAMING_SNAKE_CASE = 5      ,     _SCREAMING_SNAKE_CASE = 8      ,     _SCREAMING_SNAKE_CASE = 4      ,     _SCREAMING_SNAKE_CASE = 0.0      ,     _SCREAMING_SNAKE_CASE = 16      ,     _SCREAMING_SNAKE_CASE = 3      ,     _SCREAMING_SNAKE_CASE = 3      ,     _SCREAMING_SNAKE_CASE = 3      ,     _SCREAMING_SNAKE_CASE = 2      ,     _SCREAMING_SNAKE_CASE = 1      ,     _SCREAMING_SNAKE_CASE = 0.0      ,     _SCREAMING_SNAKE_CASE = 1      ,     _SCREAMING_SNAKE_CASE = True      ,     _SCREAMING_SNAKE_CASE = True      ,     _SCREAMING_SNAKE_CASE = 1E-5      ,     _SCREAMING_SNAKE_CASE = "gelu"      ,     _SCREAMING_SNAKE_CASE = 0.02      ,     _SCREAMING_SNAKE_CASE = 1E-12      ,     _SCREAMING_SNAKE_CASE = 224      ,     _SCREAMING_SNAKE_CASE = 1E-05      ,     **_SCREAMING_SNAKE_CASE      ,     )  ->      None:





    '''simple docstring'''




    super().__init__(**_SCREAMING_SNAKE_CASE						)

    UpperCAmelCase	:					Optional[int]	=	hidden_act
    UpperCAmelCase	:					Dict	=	hidden_dropout_prob
    UpperCAmelCase	:					int	=	hidden_sizes
    UpperCAmelCase	:					Optional[int]	=	num_hidden_layers
    UpperCAmelCase	:					List[str]	=	num_attention_heads
    UpperCAmelCase	:					Union[str, Any]	=	initializer_range
    UpperCAmelCase	:					Optional[Any]	=	layer_norm_eps
    UpperCAmelCase	:					int	=	patch_size
    UpperCAmelCase	:					List[str]	=	num_channels
    UpperCAmelCase	:					str	=	depths
    UpperCAmelCase	:					Any	=	mlp_expansion_ratio
    UpperCAmelCase	:					List[Any]	=	downsamples
    UpperCAmelCase	:					str	=	dim
    UpperCAmelCase	:					List[Any]	=	key_dim
    UpperCAmelCase	:					Tuple	=	attention_ratio
    UpperCAmelCase	:					Optional[Any]	=	resolution
    UpperCAmelCase	:					List[Any]	=	pool_size
    UpperCAmelCase	:					Any	=	downsample_patch_size
    UpperCAmelCase	:					Tuple	=	downsample_stride
    UpperCAmelCase	:					Any	=	downsample_pad
    UpperCAmelCase	:					Dict	=	drop_path_rate
    UpperCAmelCase	:					Union[str, Any]	=	num_metaad_blocks
    UpperCAmelCase	:					List[str]	=	distillation
    UpperCAmelCase	:					Optional[int]	=	use_layer_scale
    UpperCAmelCase	:					Dict	=	layer_scale_init_value
    UpperCAmelCase	:					Optional[int]	=	image_size
    UpperCAmelCase	:					Tuple	=	batch_norm_eps





"""simple docstring"""
A:   Union[str, Any]								=		{
    0: "0",
    1: "1",
    2: "2",
    3: "3",
    4: "4",
    5: "5",
    6: "6",
    7: "7",
    8: "8",
    9: "9",
    1_0: "a",
    1_1: "b",
    1_2: "c",
    1_3: "d",
    1_4: "e",
    1_5: "f",
}

def       _snake_case						(						UpperCamelCase						:		float						):
 assert type(UpperCamelCase						) in (int, float) and decimal == int(UpperCamelCase						)
 UpperCAmelCase	:					str	=	int(UpperCamelCase						)
 UpperCAmelCase	:					Optional[int]	=	""""""
 UpperCAmelCase	:					List[str]	=	False
 if decimal < 0:
  UpperCAmelCase	:					Any	=	True
  decimal *= -1
 while decimal > 0:
  UpperCAmelCase	,		UpperCAmelCase	:					Dict	=	divmod(UpperCamelCase			,		16						)
  UpperCAmelCase	:					Union[str, Any]	=	values[remainder] + hexadecimal
 UpperCAmelCase	:					int	=	"""0x""" + hexadecimal
 if negative:
  UpperCAmelCase	:					Optional[int]	=	"""-""" + hexadecimal
 return hexadecimal


if __name__ == "__main__":
      import doctest

      doctest.testmod()
