




'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					int    )				->      int:
     """simple docstring"""




     if not isinstance(_UpperCamelCase							,			_UpperCamelCase    ):
          raise TypeError('Input value must be an \'int\' type'    )

     _SCREAMING_SNAKE_CASE							   =0
     while number:
          position += 1
          number >>= 1

     return position


if __name__ == "__main__":
     import doctest

     doctest.testmod()



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


lowerCamelCase			:				Any 			=					logging.get_logger(__name__)

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







class 							A__   (	A__  ):
  A__					=    'data2vec-vision'





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





       '''simple docstring'''






       super().__init__(**_a			)

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

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







class 							A__   (	A__  ):
  A__					=    version.parse('1.11'  )





  @property
  def 						A  (		self				:     str			)     ->   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[Any]			)     ->   float:





       '''simple docstring'''






       return 1e-4
