
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    a		( a__       ):
							lowercase_		:    List[Any] 				=	"""vit"""







							def __init__(    self	:	Optional[int]   ,					snake_case__	:	Optional[Any]=768   ,					snake_case__	:	Union[str, Any]=12   ,					snake_case__	:	Optional[Any]=12   ,					snake_case__	:	Union[str, Any]=3_072   ,					snake_case__	:	Any="gelu"   ,					snake_case__	:	Optional[int]=0.0   ,					snake_case__	:	Dict=0.0   ,					snake_case__	:	Optional[int]=0.0_2   ,					snake_case__	:	Dict=1E-12   ,					snake_case__	:	Optional[Any]=224   ,					snake_case__	:	Dict=16   ,					snake_case__	:	Optional[Any]=3   ,					snake_case__	:	List[Any]=True   ,					snake_case__	:	Any=16   ,					**snake_case__	:	Union[str, Any]   ,					):
								"""simple docstring"""







								super().__init__(**lowerCAmelCase__			)

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

class    a		( a__       ):
							lowercase_		:    Dict 				=	version.parse('1.11'       )







							@property
							def    UpperCAmelCase__       (    self	:	Union[str, Any]			):
								"""simple docstring"""







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







							@property
							def    UpperCAmelCase__       (    self	:	Optional[Any]			):
								"""simple docstring"""







								return 1E-4













"""simple docstring"""




from numpy import exp, pi, sqrt






def  _SCREAMING_SNAKE_CASE						(      _lowercase		:       Tuple       ,			_lowercase		:       float = 0.0       ,			_lowercase		:       float = 1.0   )					->int:






	'''simple docstring'''






	return 1 / sqrt(2 * pi * sigma**2   ) * exp(-((x - mu) ** 2) / (2 * sigma**2)   )


if __name__ == "__main__":
		import doctest

		doctest.testmod()


