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


__lowerCAmelCase					:			Dict			      =		logging.get_logger(__name__)

__lowerCAmelCase					:			int			      =		{
    "sayakpaul/vit-msn-base": "https://huggingface.co/sayakpaul/vit-msn-base/resolve/main/config.json",
    # See all ViT MSN models at https://huggingface.co/models?filter=vit_msn
}


class 						__lowerCAmelCase	(	lowerCAmelCase_      ):



      """simple docstring"""







      A__	:			Tuple        =    '''vit_msn'''




      def __init__(      self		:       Union[str, Any]				,       _snake_case		:       Dict=768				,       _snake_case		:       List[str]=12				,       _snake_case		:       str=12				,       _snake_case		:       Dict=3072				,       _snake_case		:       str="gelu"				,       _snake_case		:       List[Any]=0.0				,       _snake_case		:       Optional[Any]=0.0				,       _snake_case		:       Dict=0.02				,       _snake_case		:       Dict=1E-0_6				,       _snake_case		:       List[Any]=224				,       _snake_case		:       List[str]=16				,       _snake_case		:       Union[str, Any]=3				,       _snake_case		:       Any=True				,       **_snake_case		:       Union[str, Any]				,       ):
          super().__init__(**_snake_case				)

          __lowercase		:			Tuple	    =       hidden_size
          __lowercase		:			List[str]	    =       num_hidden_layers
          __lowercase		:			Union[str, Any]	    =       num_attention_heads
          __lowercase		:			Union[str, Any]	    =       intermediate_size
          __lowercase		:			Union[str, Any]	    =       hidden_act
          __lowercase		:			str	    =       hidden_dropout_prob
          __lowercase		:			Union[str, Any]	    =       attention_probs_dropout_prob
          __lowercase		:			Optional[int]	    =       initializer_range
          __lowercase		:			str	    =       layer_norm_eps
          __lowercase		:			Union[str, Any]	    =       image_size
          __lowercase		:			Tuple	    =       patch_size
          __lowercase		:			Any	    =       num_channels
          __lowercase		:			List[str]	    =       qkv_bias




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


