


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


snake_case							:	Any					      =				logging.get_logger(__name__)

snake_case							:	int					      =				{
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}







class 	snake_case_       (lowerCamelCase_				):
					UpperCAmelCase__ :   Any   				=      '''van'''
					def __init__(				self       :Dict      ,__snake_case       :Dict=2_24      ,__snake_case       :str=3      ,__snake_case       :Tuple=[7, 3, 3, 3]      ,__snake_case       :Union[str, Any]=[4, 2, 2, 2]      ,__snake_case       :List[str]=[64, 1_28, 3_20, 5_12]      ,__snake_case       :Any=[3, 3, 12, 3]      ,__snake_case       :Dict=[8, 8, 4, 4]      ,__snake_case       :str="gelu"      ,__snake_case       :Optional[Any]=0.02      ,__snake_case       :Optional[Any]=1E-6      ,__snake_case       :int=1E-2      ,__snake_case       :Optional[Any]=0.0      ,__snake_case       :Tuple=0.0      ,**__snake_case       :Dict      ,) ->   Optional[Any]:
												super().__init__(**__snake_case				)
												a__					=					image_size
												a__					=					num_channels
												a__					=					patch_sizes
												a__					=					strides
												a__					=					hidden_sizes
												a__					=					depths
												a__					=					mlp_ratios
												a__					=					hidden_act
												a__					=					initializer_range
												a__					=					layer_norm_eps
												a__					=					layer_scale_init_value
												a__					=					drop_path_rate
												a__					=					dropout_rate








from typing import List

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


snake_case							:	Tuple					      =				logging.get_logger(__name__)

snake_case							:	List[Any]					      =				{
    '''snap-research/efficientformer-l1-300''': (
        '''https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json'''
    ),
}







class 	snake_case_       (lowerCamelCase_				):
					UpperCAmelCase__ :   int   				=      '''efficientformer'''
					def __init__(				self       :List[str]      ,__snake_case       :List[int] = [3, 2, 6, 4]      ,__snake_case       :List[int] = [48, 96, 2_24, 4_48]      ,__snake_case       :List[bool] = [True, True, True, True]      ,__snake_case       :int = 4_48      ,__snake_case       :int = 32      ,__snake_case       :int = 4      ,__snake_case       :int = 7      ,__snake_case       :int = 5      ,__snake_case       :int = 8      ,__snake_case       :int = 4      ,__snake_case       :float = 0.0      ,__snake_case       :int = 16      ,__snake_case       :int = 3      ,__snake_case       :int = 3      ,__snake_case       :int = 3      ,__snake_case       :int = 2      ,__snake_case       :int = 1      ,__snake_case       :float = 0.0      ,__snake_case       :int = 1      ,__snake_case       :bool = True      ,__snake_case       :bool = True      ,__snake_case       :float = 1E-5      ,__snake_case       :str = "gelu"      ,__snake_case       :float = 0.02      ,__snake_case       :float = 1E-12      ,__snake_case       :int = 2_24      ,__snake_case       :float = 1E-05      ,**__snake_case       :Dict      ,) ->   None:
												super().__init__(**__snake_case				)

												a__					=					hidden_act
												a__					=					hidden_dropout_prob
												a__					=					hidden_sizes
												a__					=					num_hidden_layers
												a__					=					num_attention_heads
												a__					=					initializer_range
												a__					=					layer_norm_eps
												a__					=					patch_size
												a__					=					num_channels
												a__					=					depths
												a__					=					mlp_expansion_ratio
												a__					=					downsamples
												a__					=					dim
												a__					=					key_dim
												a__					=					attention_ratio
												a__					=					resolution
												a__					=					pool_size
												a__					=					downsample_patch_size
												a__					=					downsample_stride
												a__					=					downsample_pad
												a__					=					drop_path_rate
												a__					=					num_metaad_blocks
												a__					=					distillation
												a__					=					use_layer_scale
												a__					=					layer_scale_init_value
												a__					=					image_size
												a__					=					batch_norm_eps




