
"""simple docstring"""


from collections import OrderedDict
from typing import Mapping

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


_lowercase				 =					logging.get_logger(__name__)

_lowercase				 =					{
    '''camembert-base''': '''https://huggingface.co/camembert-base/resolve/main/config.json''',
    '''umberto-commoncrawl-cased-v1''': (
        '''https://huggingface.co/Musixmatch/umberto-commoncrawl-cased-v1/resolve/main/config.json'''
    ),
    '''umberto-wikipedia-uncased-v1''': (
        '''https://huggingface.co/Musixmatch/umberto-wikipedia-uncased-v1/resolve/main/config.json'''
    ),
}







class 					lowerCAmelCase_					(   _lowercase     ):



						'''simple docstring'''


						_lowerCamelCase:     Optional[Any]   =     '''camembert'''


						def __init__(			self  :   Optional[int]	,A_  :   Any=3_0522	,A_  :   Any=768	,A_  :   Tuple=12	,A_  :   Optional[int]=12	,A_  :   Union[str, Any]=3072	,A_  :   Dict="gelu"	,A_  :   Optional[Any]=0.1	,A_  :   Union[str, Any]=0.1	,A_  :   List[Any]=512	,A_  :   Tuple=2	,A_  :   Optional[int]=0.02	,A_  :   Optional[int]=1e-12	,A_  :   int=1	,A_  :   Tuple=0	,A_  :   List[Any]=2	,A_  :   Optional[int]="absolute"	,A_  :   Optional[Any]=True	,A_  :   Union[str, Any]=None	,**A_  :   Optional[int]	,)  -> List[str]:
							super().__init__(pad_token_id=A_	,bos_token_id=A_	,eos_token_id=A_	,**A_   )

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







class 					lowerCAmelCase_					(   _lowercase     ):



						'''simple docstring'''


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


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


lowercase_   							=  logging.get_logger(__name__)

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





class 					__lowerCAmelCase	(   SCREAMING_SNAKE_CASE				):
  _a		     =    """timesformer"""




  def __init__(							self				,  lowerCAmelCase=224				,  lowerCAmelCase=16				,  lowerCAmelCase=3				,  lowerCAmelCase=8				,  lowerCAmelCase=768				,  lowerCAmelCase=12				,  lowerCAmelCase=12				,  lowerCAmelCase=3_072				,  lowerCAmelCase="gelu"				,  lowerCAmelCase=0.0				,  lowerCAmelCase=0.0				,  lowerCAmelCase=0.02				,  lowerCAmelCase=1e-6				,  lowerCAmelCase=True				,  lowerCAmelCase="divided_space_time"				,  lowerCAmelCase=0				,  **lowerCAmelCase				,  )    ->					Any:
        '''simple docstring'''






        super().__init__(**lowerCAmelCase   )

        _lowercase      			=image_size
        _lowercase      			=patch_size
        _lowercase      			=num_channels
        _lowercase      			=num_frames

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

        _lowercase      			=attention_type
        _lowercase      			=drop_path_rate


