from collections import OrderedDict
from typing import Mapping

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


__lowerCamelCase    :				List[Any]							     =	logging.get_logger(__name__)

__lowerCamelCase    :				Union[str, Any]							     =	{
    '''kssteven/ibert-roberta-base''': '''https://huggingface.co/kssteven/ibert-roberta-base/resolve/main/config.json''',
    '''kssteven/ibert-roberta-large''': '''https://huggingface.co/kssteven/ibert-roberta-large/resolve/main/config.json''',
    '''kssteven/ibert-roberta-large-mnli''': (
        '''https://huggingface.co/kssteven/ibert-roberta-large-mnli/resolve/main/config.json'''
    ),
}







class __snake_case       (		lowerCamelCase_	):
   lowerCAmelCase_														=							"ibert"




   def __init__(					self    :       Dict ,			_lowercase    :       List[str]=3_05_22 ,			_lowercase    :       List[Any]=7_68 ,			_lowercase    :       List[str]=12 ,			_lowercase    :       List[Any]=12 ,			_lowercase    :       Any=30_72 ,			_lowercase    :       Tuple="gelu" ,			_lowercase    :       Optional[Any]=0.1 ,			_lowercase    :       Union[str, Any]=0.1 ,			_lowercase    :       List[str]=5_12 ,			_lowercase    :       Tuple=2 ,			_lowercase    :       Union[str, Any]=0.02 ,			_lowercase    :       Dict=1E-12 ,			_lowercase    :       str=1 ,			_lowercase    :       Optional[Any]=0 ,			_lowercase    :       int=2 ,			_lowercase    :       Tuple="absolute" ,			_lowercase    :       int=False ,			_lowercase    :       int="none" ,			**_lowercase    :       Dict ,			):



     """simple docstring"""






     super().__init__(pad_token_id=_lowercase ,			bos_token_id=_lowercase ,			eos_token_id=_lowercase ,			**_lowercase   )

     SCREAMING_SNAKE_CASE__    							=   vocab_size
     SCREAMING_SNAKE_CASE__    							=   hidden_size
     SCREAMING_SNAKE_CASE__    							=   num_hidden_layers
     SCREAMING_SNAKE_CASE__    							=   num_attention_heads
     SCREAMING_SNAKE_CASE__    							=   hidden_act
     SCREAMING_SNAKE_CASE__    							=   intermediate_size
     SCREAMING_SNAKE_CASE__    							=   hidden_dropout_prob
     SCREAMING_SNAKE_CASE__    							=   attention_probs_dropout_prob
     SCREAMING_SNAKE_CASE__    							=   max_position_embeddings
     SCREAMING_SNAKE_CASE__    							=   type_vocab_size
     SCREAMING_SNAKE_CASE__    							=   initializer_range
     SCREAMING_SNAKE_CASE__    							=   layer_norm_eps
     SCREAMING_SNAKE_CASE__    							=   position_embedding_type
     SCREAMING_SNAKE_CASE__    							=   quant_mode
     SCREAMING_SNAKE_CASE__    							=   force_dequant







class __snake_case       (		lowerCamelCase_	):




   @property
   def 			__a		(					self    :       Optional[Any]   ):



     """simple docstring"""






     if self.task == "multiple-choice":
       SCREAMING_SNAKE_CASE__    							=   {0: """batch""", 1: """choice""", 2: """sequence"""}
     else:
       SCREAMING_SNAKE_CASE__    							=   {0: """batch""", 1: """sequence"""}
     return OrderedDict(
         [
             ("""input_ids""", dynamic_axis),
             ("""attention_mask""", dynamic_axis),
         ]   )

from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowerCamelCase    :				List[Any]							     =	logging.get_logger(__name__)

__lowerCamelCase    :				str							     =	{
    '''facebook/timesformer''': '''https://huggingface.co/facebook/timesformer/resolve/main/config.json''',
}







class __snake_case       (		lowerCamelCase_	):
   lowerCAmelCase_														=							"timesformer"




   def __init__(					self    :       Any ,			_lowercase    :       Tuple=2_24 ,			_lowercase    :       Tuple=16 ,			_lowercase    :       List[Any]=3 ,			_lowercase    :       str=8 ,			_lowercase    :       Optional[Any]=7_68 ,			_lowercase    :       List[str]=12 ,			_lowercase    :       List[str]=12 ,			_lowercase    :       Dict=30_72 ,			_lowercase    :       List[str]="gelu" ,			_lowercase    :       List[str]=0.0 ,			_lowercase    :       List[str]=0.0 ,			_lowercase    :       Tuple=0.02 ,			_lowercase    :       List[Any]=1E-6 ,			_lowercase    :       List[str]=True ,			_lowercase    :       Dict="divided_space_time" ,			_lowercase    :       Union[str, Any]=0 ,			**_lowercase    :       Union[str, Any] ,			):



     """simple docstring"""






     super().__init__(**_lowercase   )

     SCREAMING_SNAKE_CASE__    							=   image_size
     SCREAMING_SNAKE_CASE__    							=   patch_size
     SCREAMING_SNAKE_CASE__    							=   num_channels
     SCREAMING_SNAKE_CASE__    							=   num_frames

     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__    							=   qkv_bias

     SCREAMING_SNAKE_CASE__    							=   attention_type
     SCREAMING_SNAKE_CASE__    							=   drop_path_rate
