


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 : List[str]		=				logging.get_logger(__name__)

a : Tuple		=				{
    """facebook/data2vec-vision-base-ft""": (
        """https://huggingface.co/facebook/data2vec-vision-base-ft/resolve/main/config.json"""
    ),
}
class 	lowerCamelCase_       (				lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase						     =				"data2vec-vision"






					def __init__(				self ,       snake_case_=7_6_8 ,       snake_case_=1_2 ,       snake_case_=1_2 ,       snake_case_=3_0_7_2 ,       snake_case_="gelu" ,       snake_case_=0.0 ,       snake_case_=0.0 ,       snake_case_=0.0_2 ,       snake_case_=1e-1_2 ,       snake_case_=2_2_4 ,       snake_case_=1_6 ,       snake_case_=3 ,       snake_case_=False ,       snake_case_=False ,       snake_case_=False ,       snake_case_=False ,       snake_case_=0.1 ,       snake_case_=0.1 ,       snake_case_=True ,       snake_case_=[3, 5, 7, 1_1] ,       snake_case_=[1, 2, 3, 6] ,       snake_case_=True ,       snake_case_=0.4 ,       snake_case_=2_5_6 ,       snake_case_=1 ,       snake_case_=False ,       snake_case_=2_5_5 ,       **snake_case_ ,       )   ->			Any:







								'''simple docstring'''

								super().__init__(**snake_case_						)

								__lowercase 					=   hidden_size
								__lowercase 					=   num_hidden_layers
								__lowercase 					=   num_attention_heads
								__lowercase 					=   intermediate_size
								__lowercase 					=   hidden_act
								__lowercase 					=   hidden_dropout_prob
								__lowercase 					=   attention_probs_dropout_prob
								__lowercase 					=   initializer_range
								__lowercase 					=   layer_norm_eps

								__lowercase 					=   image_size
								__lowercase 					=   patch_size
								__lowercase 					=   num_channels
								__lowercase 					=   use_mask_token
								__lowercase 					=   use_absolute_position_embeddings
								__lowercase 					=   use_relative_position_bias
								__lowercase 					=   use_shared_relative_position_bias
								__lowercase 					=   layer_scale_init_value
								__lowercase 					=   drop_path_rate
								__lowercase 					=   use_mean_pooling
								# decode head attributes (semantic segmentation)
								__lowercase 					=   out_indices
								__lowercase 					=   pool_scales
								# auxiliary head attributes (semantic segmentation)
								__lowercase 					=   use_auxiliary_head
								__lowercase 					=   auxiliary_loss_weight
								__lowercase 					=   auxiliary_channels
								__lowercase 					=   auxiliary_num_convs
								__lowercase 					=   auxiliary_concat_input
								__lowercase 					=   semantic_loss_ignore_index




class 	lowerCamelCase_       (				lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase						     =				version.parse("1.11"				)






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







								'''simple docstring'''

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






					@property
					def A      (				self						)   ->			float:







								'''simple docstring'''

								return 1e-4






from ..utils import DummyObject, requires_backends
class 	lowerCamelCase_       (				metaclass=lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase            =				["onnx"]






					def __init__(				self ,       *snake_case_ ,       **snake_case_						)   ->			List[Any]:







								'''simple docstring'''

								requires_backends(self ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			int:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			List[str]:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)


