


'''simple docstring'''



from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


A__						:   Dict				=    logging.get_logger(__name__)

A__						:   List[str]				=    {
    """google/vit-base-patch16-224""": """https://huggingface.co/vit-base-patch16-224/resolve/main/config.json""",
    # See all ViT models at https://huggingface.co/models?filter=vit
}





class   UpperCAmelCase_    (_UpperCAmelCase    ):





    """simple docstring"""






    lowerCamelCase    :   Optional[Any]					=     'vit'







    def __init__(				self     ,	SCREAMING_SNAKE_CASE_=7_68     ,	SCREAMING_SNAKE_CASE_=12     ,	SCREAMING_SNAKE_CASE_=12     ,	SCREAMING_SNAKE_CASE_=30_72     ,	SCREAMING_SNAKE_CASE_="gelu"     ,	SCREAMING_SNAKE_CASE_=0.0     ,	SCREAMING_SNAKE_CASE_=0.0     ,	SCREAMING_SNAKE_CASE_=0.0_2     ,	SCREAMING_SNAKE_CASE_=1E-12     ,	SCREAMING_SNAKE_CASE_=2_24     ,	SCREAMING_SNAKE_CASE_=16     ,	SCREAMING_SNAKE_CASE_=3     ,	SCREAMING_SNAKE_CASE_=True     ,	SCREAMING_SNAKE_CASE_=16     ,	**SCREAMING_SNAKE_CASE_     ,	)							->	Tuple:
         super().__init__(**SCREAMING_SNAKE_CASE_      )

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







class   UpperCAmelCase_    (_UpperCAmelCase    ):





    """simple docstring"""






    lowerCamelCase    :   Optional[Any]					=     version.parse('1.11'    )







    @property
    def  lowercase_							(				self      )							->	Mapping[str, Mapping[int, str]]:
         return OrderedDict(
             [
                 ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
             ]      )







    @property
    def  lowercase_							(				self      )							->	float:
         return 1E-4










'''simple docstring'''



def      UpperCAmelCase__   (      UpperCAmelCase_       :							int = 1_00				)	->						int:
     __lowerCamelCase  :      Union[str, Any]														=						n * (n + 1) * (2 * n + 1) / 6
     __lowerCamelCase  :      Union[str, Any]														=						(n * (n + 1) / 2) ** 2
     return int(square_of_sum - sum_of_squares				)


if __name__ == "__main__":
      print(f'''{solution() = }''')






