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


__lowerCAmelCase					:			Union[str, Any]			      =		logging.get_logger(__name__)

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


class 						__lowerCAmelCase	(	lowerCAmelCase_      ):



      """simple docstring"""







      A__	:			List[str]        =    '''van'''




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




from __future__ import annotations


def     UpperCAmelCase_  (						__lowerCAmelCase	) ->						int:
    if not nums:
        return 0
    __lowercase		:			List[Any]	    =       nums[0]
    __lowercase		:			Union[str, Any]	    =       0
    for num in nums[1:]:
        __lowercase    ,      __lowercase		:			Dict	    =       (
            max_excluding + num,
            max(__lowerCAmelCase	,					__lowerCAmelCase	),
        )
    return max(__lowerCAmelCase	,					__lowerCAmelCase	)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


