

from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowerCAmelCase__       = logging.get_logger(__name__)

lowerCAmelCase__       = {
    "facebook/data2vec-text-base": "https://huggingface.co/data2vec/resolve/main/config.json",
}






class 						__magic_name__    (       _snake_case    ):
 UpperCAmelCase							    =						"""data2vec-text"""


 def __init__(						self		: Optional[int]			,						lowerCAmelCase__		: Optional[Any]=3_0_5_2_2			,						lowerCAmelCase__		: List[str]=7_6_8			,						lowerCAmelCase__		: Union[str, Any]=1_2			,						lowerCAmelCase__		: Union[str, Any]=1_2			,						lowerCAmelCase__		: Optional[int]=3_0_7_2			,						lowerCAmelCase__		: Optional[Any]="gelu"			,						lowerCAmelCase__		: Tuple=0.1			,						lowerCAmelCase__		: Optional[int]=0.1			,						lowerCAmelCase__		: Any=5_1_2			,						lowerCAmelCase__		: int=2			,						lowerCAmelCase__		: List[str]=0.02			,						lowerCAmelCase__		: int=1e-1_2			,						lowerCAmelCase__		: Tuple=1			,						lowerCAmelCase__		: str=0			,						lowerCAmelCase__		: Any=2			,						lowerCAmelCase__		: List[Any]="absolute"			,						lowerCAmelCase__		: Tuple=True			,						lowerCAmelCase__		: Optional[Any]=None			,						**lowerCAmelCase__		: str			,						)    ->      List[str]:
   super().__init__(pad_token_id=lowerCAmelCase__			,						bos_token_id=lowerCAmelCase__			,						eos_token_id=lowerCAmelCase__			,						**lowerCAmelCase__    )

   UpperCAmelCase					      =  vocab_size
   UpperCAmelCase					      =  hidden_size
   UpperCAmelCase					      =  num_hidden_layers
   UpperCAmelCase					      =  num_attention_heads
   UpperCAmelCase					      =  hidden_act
   UpperCAmelCase					      =  intermediate_size
   UpperCAmelCase					      =  hidden_dropout_prob
   UpperCAmelCase					      =  attention_probs_dropout_prob
   UpperCAmelCase					      =  max_position_embeddings
   UpperCAmelCase					      =  type_vocab_size
   UpperCAmelCase					      =  initializer_range
   UpperCAmelCase					      =  layer_norm_eps
   UpperCAmelCase					      =  position_embedding_type
   UpperCAmelCase					      =  use_cache
   UpperCAmelCase					      =  classifier_dropout






class 						__magic_name__    (       _snake_case    ):


 @property
 def _UpperCamelCase	(						self		: Optional[int]    )    ->      Mapping[str, Mapping[int, str]]:
   if self.task == "multiple-choice":
     UpperCAmelCase					      =  {0: "batch", 1: "choice", 2: "sequence"}
   else:
     UpperCAmelCase					      =  {0: "batch", 1: "sequence"}
   return OrderedDict(
       [
           ("input_ids", dynamic_axis),
           ("attention_mask", dynamic_axis),
       ]    )






def      _lowerCAmelCase(	__A			):
  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()



