





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


lowercase_		:				str				=						logging.get_logger(__name__)

lowercase_		:				List[Any]				=						{
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}


class 			lowercase				(							a_     ):



						"""simple docstring"""

						_UpperCamelCase  :	Union[str, Any]								=	"van"







						def __init__(    self			:		Any ,				lowerCamelCase_			:		str=2_24 ,				lowerCamelCase_			:		Any=3 ,				lowerCamelCase_			:		Any=[7, 3, 3, 3] ,				lowerCamelCase_			:		Tuple=[4, 2, 2, 2] ,				lowerCamelCase_			:		Any=[64, 1_28, 3_20, 5_12] ,				lowerCamelCase_			:		Optional[Any]=[3, 3, 12, 3] ,				lowerCamelCase_			:		Optional[int]=[8, 8, 4, 4] ,				lowerCamelCase_			:		Tuple="gelu" ,				lowerCamelCase_			:		Tuple=0.02 ,				lowerCamelCase_			:		str=1e-6 ,				lowerCamelCase_			:		Tuple=1e-2 ,				lowerCamelCase_			:		Union[str, Any]=0.0 ,				lowerCamelCase_			:		List[Any]=0.0 ,				**lowerCamelCase_			:		Tuple ,				):





										'''simple docstring'''







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













def       A__(		__lowerCAmelCase ):
				assert column_title.isupper()
				_snake_case :			List[Any]  						=   0
				_snake_case :			List[str]  						=   len(__lowerCAmelCase ) - 1
				_snake_case :			Dict  						=   0

				while index >= 0:
								_snake_case :			List[str]  						=   (ord(column_title[index] ) - 64) * pow(26	,			__lowerCAmelCase )
								answer += value
								power += 1
								index -= 1

				return answer


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

		testmod()






