



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


A:   Optional[Any]								=		logging.get_logger(__name__)

A:   Any								=		{
    "Visual-Attention-Network/van-base": (
        "https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"
    ),
}



class       SCREAMING_SNAKE_CASE__  (					UpperCAmelCase__ ):
   __lowerCAmelCase  :   Union[str, Any]						=						'van'

   def __init__(   self      ,     _SCREAMING_SNAKE_CASE=224      ,     _SCREAMING_SNAKE_CASE=3      ,     _SCREAMING_SNAKE_CASE=[7, 3, 3, 3]      ,     _SCREAMING_SNAKE_CASE=[4, 2, 2, 2]      ,     _SCREAMING_SNAKE_CASE=[64, 128, 320, 512]      ,     _SCREAMING_SNAKE_CASE=[3, 3, 12, 3]      ,     _SCREAMING_SNAKE_CASE=[8, 8, 4, 4]      ,     _SCREAMING_SNAKE_CASE="gelu"      ,     _SCREAMING_SNAKE_CASE=0.02      ,     _SCREAMING_SNAKE_CASE=1E-6      ,     _SCREAMING_SNAKE_CASE=1E-2      ,     _SCREAMING_SNAKE_CASE=0.0      ,     _SCREAMING_SNAKE_CASE=0.0      ,     **_SCREAMING_SNAKE_CASE      ,     )  ->      str:





    '''simple docstring'''




    super().__init__(**_SCREAMING_SNAKE_CASE						)
    UpperCAmelCase	:					Tuple	=	image_size
    UpperCAmelCase	:					str	=	num_channels
    UpperCAmelCase	:					int	=	patch_sizes
    UpperCAmelCase	:					Union[str, Any]	=	strides
    UpperCAmelCase	:					List[str]	=	hidden_sizes
    UpperCAmelCase	:					Any	=	depths
    UpperCAmelCase	:					Tuple	=	mlp_ratios
    UpperCAmelCase	:					str	=	hidden_act
    UpperCAmelCase	:					List[Any]	=	initializer_range
    UpperCAmelCase	:					Optional[Any]	=	layer_norm_eps
    UpperCAmelCase	:					int	=	layer_scale_init_value
    UpperCAmelCase	:					Any	=	drop_path_rate
    UpperCAmelCase	:					Optional[int]	=	dropout_rate





"""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()
