






"""simple docstring"""





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


__lowerCamelCase							=  logging.get_logger(__name__)

__lowerCamelCase							=  {
    '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       __A		(   SCREAMING_SNAKE_CASE_			):
					UpperCAmelCase__								=				"vit_msn"

					def __init__(			self  :      Optional[int]     ,		__snake_case  :      Optional[Any]=7_6_8     ,		__snake_case  :      Dict=1_2     ,		__snake_case  :      int=1_2     ,		__snake_case  :      Optional[int]=3_0_7_2     ,		__snake_case  :      Any="gelu"     ,		__snake_case  :      str=0.0     ,		__snake_case  :      List[Any]=0.0     ,		__snake_case  :      str=0.02     ,		__snake_case  :      Optional[int]=1E-06     ,		__snake_case  :      List[Any]=2_2_4     ,		__snake_case  :      int=1_6     ,		__snake_case  :      List[Any]=3     ,		__snake_case  :      List[Any]=True     ,		**__snake_case  :      Optional[int]     ,		)			->							List[Any]:
											super().__init__(**__snake_case					)

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











"""simple docstring"""





def   a    (     __UpperCAmelCase      :    list[int]  )    ->							float:
						if not nums:  # Makes sure that the list is not empty
												raise ValueError("""List is empty"""  )

						__magic_name__:	Dict							=       sum(__UpperCAmelCase  ) / len(__UpperCAmelCase  )  # Calculate the average
						return sum(abs(x - average  ) for x in nums  ) / len(__UpperCAmelCase  )


if __name__ == "__main__":
							import doctest

							doctest.testmod()



