


'''simple docstring'''

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


lowerCAmelCase :List[Any]             =     logging.get_logger(__name__)

lowerCAmelCase :int             =     {
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}
class _lowerCamelCase			(		lowercase_				):



		'''simple docstring'''







		A_      :     Union[str, Any]        =							'''van'''







		def __init__(   self						:		Optional[int]    ,	_A						:		int=224    ,	_A						:		Union[str, Any]=3    ,	_A						:		Optional[Any]=[7, 3, 3, 3]    ,	_A						:		Tuple=[4, 2, 2, 2]    ,	_A						:		Dict=[64, 128, 320, 512]    ,	_A						:		Optional[Any]=[3, 3, 12, 3]    ,	_A						:		str=[8, 8, 4, 4]    ,	_A						:		int="gelu"    ,	_A						:		Optional[int]=0.02    ,	_A						:		Dict=1E-6    ,	_A						:		Optional[int]=1E-2    ,	_A						:		Dict=0.0    ,	_A						:		Any=0.0    ,	**_A						:		Any    ,	)    ->					Optional[int]:
			super().__init__(**_A     )
			__magic_name__			:       Union[str, Any]	      =	image_size
			__magic_name__			:       Optional[int]	      =	num_channels
			__magic_name__			:       List[Any]	      =	patch_sizes
			__magic_name__			:       str	      =	strides
			__magic_name__			:       Union[str, Any]	      =	hidden_sizes
			__magic_name__			:       Tuple	      =	depths
			__magic_name__			:       Optional[Any]	      =	mlp_ratios
			__magic_name__			:       int	      =	hidden_act
			__magic_name__			:       Dict	      =	initializer_range
			__magic_name__			:       Union[str, Any]	      =	layer_norm_eps
			__magic_name__			:       int	      =	layer_scale_init_value
			__magic_name__			:       int	      =	drop_path_rate
			__magic_name__			:       List[str]	      =	dropout_rate


_UpperCAmelCase						:  Any									=			6_5521





def    __lowerCamelCase      (					UpperCamelCase__ ):







							'''simple docstring'''






							snake_case_     							=       1
							snake_case_     							=       0
							for plain_chr in plain_text:
														snake_case_     							=       (a + ord(UpperCamelCase__ )) % MOD_ADLER
														snake_case_     							=       (b + a) % MOD_ADLER
							return (b << 16) | a




