





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


_UpperCAmelCase        =				logging.get_logger(__name__)

_UpperCAmelCase        =				{
    '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					(	lowerCAmelCase_     ):
							_UpperCamelCase				:					int         =   '''vit'''

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




														"""simple docstring"""


														super().__init__(**_SCREAMING_SNAKE_CASE		)

														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
														UpperCamelCase_          =  encoder_stride



class 							_UpperCamelCase					(	lowerCAmelCase_     ):
							_UpperCamelCase				:					List[str]         =   version.parse('''1.11'''     )

							@property
							def lowercase (		self: Dict		)       -> Mapping[str, Mapping[int, str]]:




														"""simple docstring"""


														return OrderedDict(
														    [
														        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
														    ]		)



							@property
							def lowercase (		self: List[Any]		)       -> float:




														"""simple docstring"""


														return 1e-4








_UpperCAmelCase        =				{
    'Pillow': 'Pillow',
    'accelerate': 'accelerate>=0.11.0',
    'compel': 'compel==0.1.8',
    'black': 'black~=23.1',
    'datasets': 'datasets',
    'filelock': 'filelock',
    'flax': 'flax>=0.4.1',
    'hf-doc-builder': 'hf-doc-builder>=0.3.0',
    'huggingface-hub': 'huggingface-hub>=0.13.2',
    'requests-mock': 'requests-mock==1.10.0',
    'importlib_metadata': 'importlib_metadata',
    'invisible-watermark': 'invisible-watermark',
    'isort': 'isort>=5.5.4',
    'jax': 'jax>=0.2.8,!=0.3.2',
    'jaxlib': 'jaxlib>=0.1.65',
    'Jinja2': 'Jinja2',
    'k-diffusion': 'k-diffusion>=0.0.12',
    'torchsde': 'torchsde',
    'note_seq': 'note_seq',
    'librosa': 'librosa',
    'numpy': 'numpy',
    'omegaconf': 'omegaconf',
    'parameterized': 'parameterized',
    'protobuf': 'protobuf>=3.20.3,<4',
    'pytest': 'pytest',
    'pytest-timeout': 'pytest-timeout',
    'pytest-xdist': 'pytest-xdist',
    'ruff': 'ruff>=0.0.241',
    'safetensors': 'safetensors',
    'sentencepiece': 'sentencepiece>=0.1.91,!=0.1.92',
    'scipy': 'scipy',
    'onnx': 'onnx',
    'regex': 'regex!=2019.12.17',
    'requests': 'requests',
    'tensorboard': 'tensorboard',
    'torch': 'torch>=1.4',
    'torchvision': 'torchvision',
    'transformers': 'transformers>=4.25.1',
    'urllib3': 'urllib3<=2.0.0',
}

