




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__		     =     logging.get_logger(__name__)

a__		     =     {
    '''facebook/data2vec-vision-base-ft''': (
        '''https://huggingface.co/facebook/data2vec-vision-base-ft/resolve/main/config.json'''
    ),
}


class    SCREAMING_SNAKE_CASE_				(       _UpperCamelCase   ):



	"""simple docstring"""


	__magic_name__   :       Any      	=		'data2vec-vision'






	def __init__(					self		:						Any					,     lowerCAmelCase		:						Optional[int]=768					,     lowerCAmelCase		:						Tuple=12					,     lowerCAmelCase		:						int=12					,     lowerCAmelCase		:						Optional[int]=3072					,     lowerCAmelCase		:						int="gelu"					,     lowerCAmelCase		:						Tuple=0.0					,     lowerCAmelCase		:						Dict=0.0					,     lowerCAmelCase		:						Optional[Any]=0.02					,     lowerCAmelCase		:						str=1E-12					,     lowerCAmelCase		:						Tuple=224					,     lowerCAmelCase		:						Any=16					,     lowerCAmelCase		:						Any=3					,     lowerCAmelCase		:						Dict=False					,     lowerCAmelCase		:						List[Any]=False					,     lowerCAmelCase		:						Dict=False					,     lowerCAmelCase		:						Optional[Any]=False					,     lowerCAmelCase		:						Optional[int]=0.1					,     lowerCAmelCase		:						Union[str, Any]=0.1					,     lowerCAmelCase		:						Tuple=True					,     lowerCAmelCase		:						Tuple=[3, 5, 7, 11]					,     lowerCAmelCase		:						int=[1, 2, 3, 6]					,     lowerCAmelCase		:						List[Any]=True					,     lowerCAmelCase		:						List[str]=0.4					,     lowerCAmelCase		:						Union[str, Any]=256					,     lowerCAmelCase		:						Optional[int]=1					,     lowerCAmelCase		:						Tuple=False					,     lowerCAmelCase		:						Dict=255					,     **lowerCAmelCase		:						List[str]					,     )	->       Dict:







						"""simple docstring"""







						super().__init__(**lowerCAmelCase	)

						__UpperCamelCase					:	List[str]             =      hidden_size
						__UpperCamelCase					:	Optional[int]             =      num_hidden_layers
						__UpperCamelCase					:	Union[str, Any]             =      num_attention_heads
						__UpperCamelCase					:	int             =      intermediate_size
						__UpperCamelCase					:	Union[str, Any]             =      hidden_act
						__UpperCamelCase					:	Dict             =      hidden_dropout_prob
						__UpperCamelCase					:	Any             =      attention_probs_dropout_prob
						__UpperCamelCase					:	Union[str, Any]             =      initializer_range
						__UpperCamelCase					:	Optional[int]             =      layer_norm_eps

						__UpperCamelCase					:	Optional[Any]             =      image_size
						__UpperCamelCase					:	int             =      patch_size
						__UpperCamelCase					:	Optional[int]             =      num_channels
						__UpperCamelCase					:	Tuple             =      use_mask_token
						__UpperCamelCase					:	List[str]             =      use_absolute_position_embeddings
						__UpperCamelCase					:	Union[str, Any]             =      use_relative_position_bias
						__UpperCamelCase					:	str             =      use_shared_relative_position_bias
						__UpperCamelCase					:	int             =      layer_scale_init_value
						__UpperCamelCase					:	Optional[int]             =      drop_path_rate
						__UpperCamelCase					:	Dict             =      use_mean_pooling
						# decode head attributes (semantic segmentation)
						__UpperCamelCase					:	Optional[Any]             =      out_indices
						__UpperCamelCase					:	Tuple             =      pool_scales
						# auxiliary head attributes (semantic segmentation)
						__UpperCamelCase					:	Dict             =      use_auxiliary_head
						__UpperCamelCase					:	Optional[Any]             =      auxiliary_loss_weight
						__UpperCamelCase					:	Optional[Any]             =      auxiliary_channels
						__UpperCamelCase					:	int             =      auxiliary_num_convs
						__UpperCamelCase					:	Dict             =      auxiliary_concat_input
						__UpperCamelCase					:	Tuple             =      semantic_loss_ignore_index






class    SCREAMING_SNAKE_CASE_				(       _UpperCamelCase   ):



	"""simple docstring"""


	__magic_name__   :       Optional[int]      	=		version.parse('1.11'   )






	@property
	def 					lowerCamelCase__     (					self		:						Any	)	->       Mapping[str, Mapping[int, str]]:







						"""simple docstring"""







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






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







						"""simple docstring"""







						return 1E-4












def 				A__ (snake_case   :		float		,	snake_case   :		int				)     ->						float:
					if digit_amount > 0:
										return round(number - int(snake_case				)		,	snake_case				)
					return number - int(snake_case				)


if __name__ == "__main__":
	print(decimal_isolate(1.53, 0))
	print(decimal_isolate(35.345, 1))
	print(decimal_isolate(35.345, 2))
	print(decimal_isolate(35.345, 3))
	print(decimal_isolate(-14.789, 3))
	print(decimal_isolate(0, 2))
	print(decimal_isolate(-14.123, 1))
	print(decimal_isolate(-14.123, 2))
	print(decimal_isolate(-14.123, 3))






