


'''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


_lowercase    :    List[str]			     =  logging.get_logger(__name__)

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






class  UpperCamelCase__(     lowerCAmelCase ):
				__magic_name__       :   List[Any]							= "data2vec-vision"




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

										"""simple docstring"""




										super().__init__(**lowerCAmelCase   )

										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         =			use_mask_token
										UpperCAmelCase         =			use_absolute_position_embeddings
										UpperCAmelCase         =			use_relative_position_bias
										UpperCAmelCase         =			use_shared_relative_position_bias
										UpperCAmelCase         =			layer_scale_init_value
										UpperCAmelCase         =			drop_path_rate
										UpperCAmelCase         =			use_mean_pooling
										# decode head attributes (semantic segmentation)
										UpperCAmelCase         =			out_indices
										UpperCAmelCase         =			pool_scales
										# auxiliary head attributes (semantic segmentation)
										UpperCAmelCase         =			use_auxiliary_head
										UpperCAmelCase         =			auxiliary_loss_weight
										UpperCAmelCase         =			auxiliary_channels
										UpperCAmelCase         =			auxiliary_num_convs
										UpperCAmelCase         =			auxiliary_concat_input
										UpperCAmelCase         =			semantic_loss_ignore_index







class  UpperCamelCase__(     lowerCAmelCase ):
				__magic_name__       :   Optional[int]							= version.parse("1.11" )




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

										"""simple docstring"""




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





				@property
				def   a__(	self    :				List[str]   )->  float:

										"""simple docstring"""




										return 1E-4









'''simple docstring'''



def    lowerCamelCase__   ( A     :    str  ):




						'''simple docstring'''






						assert column_title.isupper()
						UpperCAmelCase         =			0
						UpperCAmelCase         =			len(A  ) - 1
						UpperCAmelCase         =			0

						while index >= 0:
												UpperCAmelCase         =			(ord(column_title[index]  ) - 64) * pow(26   ,     A  )
												answer += value
												power += 1
												index -= 1

						return answer


if __name__ == "__main__":
	from doctest import testmod

	testmod()





