






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


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

__a:     Dict   					=					{
    '''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 		SCREAMING_SNAKE_CASE__	(  UpperCAmelCase     ):

  '''simple docstring'''







  _lowerCamelCase    =  '''vit_msn'''


  def __init__(      self		:			List[str]       ,				lowerCamelCase		:			Dict=768       ,				lowerCamelCase		:			Union[str, Any]=12       ,				lowerCamelCase		:			Optional[Any]=12       ,				lowerCamelCase		:			str=3072       ,				lowerCamelCase		:			Optional[Any]="gelu"       ,				lowerCamelCase		:			Any=0.0       ,				lowerCamelCase		:			Optional[Any]=0.0       ,				lowerCamelCase		:			int=0.02       ,				lowerCamelCase		:			List[Any]=1E-06       ,				lowerCamelCase		:			List[str]=224       ,				lowerCamelCase		:			List[Any]=16       ,				lowerCamelCase		:			Optional[int]=3       ,				lowerCamelCase		:			int=True       ,				**lowerCamelCase		:			Union[str, Any]       ,				)						->	int:


         """simple docstring"""
         super().__init__(**lowerCamelCase							)

         _UpperCAmelCase							=    hidden_size
         _UpperCAmelCase							=    num_hidden_layers
         _UpperCAmelCase							=    num_attention_heads
         _UpperCAmelCase							=    intermediate_size
         _UpperCAmelCase							=    hidden_act
         _UpperCAmelCase							=    hidden_dropout_prob
         _UpperCAmelCase							=    attention_probs_dropout_prob
         _UpperCAmelCase							=    initializer_range
         _UpperCAmelCase							=    layer_norm_eps
         _UpperCAmelCase							=    image_size
         _UpperCAmelCase							=    patch_size
         _UpperCAmelCase							=    num_channels
         _UpperCAmelCase							=    qkv_bias





'''simple docstring'''



def       _UpperCamelCase			(_lowerCamelCase				:  int ,						_lowerCamelCase				:  int ,						_lowerCamelCase				:  int						)-> float:




     '''simple docstring'''





     __snake_case            =	(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
     # formula for sum of series
     return total







def       _UpperCamelCase			()-> str:




     '''simple docstring'''





     print(sum_of_series(1 ,						1 ,						10						)						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()






