
'''simple docstring'''




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


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

lowercase			:				List[str]    		=			{
    'facebook/timesformer': 'https://huggingface.co/facebook/timesformer/resolve/main/config.json',
}





class  A				(							__snake_case						):
     __magic_name__						=		'''timesformer'''





     def __init__(							self						,			SCREAMING_SNAKE_CASE=224						,			SCREAMING_SNAKE_CASE=16						,			SCREAMING_SNAKE_CASE=3						,			SCREAMING_SNAKE_CASE=8						,			SCREAMING_SNAKE_CASE=768						,			SCREAMING_SNAKE_CASE=12						,			SCREAMING_SNAKE_CASE=12						,			SCREAMING_SNAKE_CASE=3072						,			SCREAMING_SNAKE_CASE="gelu"						,			SCREAMING_SNAKE_CASE=0.0						,			SCREAMING_SNAKE_CASE=0.0						,			SCREAMING_SNAKE_CASE=0.02						,			SCREAMING_SNAKE_CASE=1e-6						,			SCREAMING_SNAKE_CASE=True						,			SCREAMING_SNAKE_CASE="divided_space_time"						,			SCREAMING_SNAKE_CASE=0						,			**SCREAMING_SNAKE_CASE						,			) ->				int:






         """simple docstring"""






         super().__init__(**SCREAMING_SNAKE_CASE	)

         A       :   List[Any]					=						image_size
         A       :   Any					=						patch_size
         A       :   List[str]					=						num_channels
         A       :   Tuple					=						num_frames

         A       :   Union[str, Any]					=						hidden_size
         A       :   Tuple					=						num_hidden_layers
         A       :   Any					=						num_attention_heads
         A       :   Optional[int]					=						intermediate_size
         A       :   List[Any]					=						hidden_act
         A       :   Optional[Any]					=						hidden_dropout_prob
         A       :   List[str]					=						attention_probs_dropout_prob
         A       :   Any					=						initializer_range
         A       :   Optional[int]					=						layer_norm_eps
         A       :   Optional[int]					=						qkv_bias

         A       :   List[Any]					=						attention_type
         A       :   Optional[Any]					=						drop_path_rate










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


__lowerCAmelCase		:				Optional[Any]       			=		logging.get_logger(__name__)

__lowerCAmelCase		:				str       			=		{'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/config.json'}




class     snake_case__							(_UpperCamelCase   ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_       :							Dict							 =					"""openai-gpt"""
				SCREAMING_SNAKE_CASE_       :							Tuple							 =					{
				    """max_position_embeddings""": """n_positions""",
				    """hidden_size""": """n_embd""",
				    """num_attention_heads""": """n_head""",
				    """num_hidden_layers""": """n_layer""",
				}





				def __init__(      self				:     str					,      __lowerCamelCase				:     List[str]=4_04_78					,      __lowerCamelCase				:     List[Any]=5_12					,      __lowerCamelCase				:     List[str]=7_68					,      __lowerCamelCase				:     List[str]=12					,      __lowerCamelCase				:     Optional[Any]=12					,      __lowerCamelCase				:     str="gelu"					,      __lowerCamelCase				:     Optional[int]=0.1					,      __lowerCamelCase				:     Any=0.1					,      __lowerCamelCase				:     Dict=0.1					,      __lowerCamelCase				:     Any=1e-5					,      __lowerCamelCase				:     Optional[int]=0.02					,      __lowerCamelCase				:     Optional[int]="cls_index"					,      __lowerCamelCase				:     List[Any]=True					,      __lowerCamelCase				:     Optional[int]=None					,      __lowerCamelCase				:     Optional[Any]=True					,      __lowerCamelCase				:     Tuple=0.1					,      **__lowerCamelCase				:     Union[str, Any]					,      )					->     List[str]:
							a    =			vocab_size
							a    =			n_positions
							a    =			n_embd
							a    =			n_layer
							a    =			n_head
							a    =			afn
							a    =			resid_pdrop
							a    =			embd_pdrop
							a    =			attn_pdrop
							a    =			layer_norm_epsilon
							a    =			initializer_range
							a    =			summary_type
							a    =			summary_use_proj
							a    =			summary_activation
							a    =			summary_first_dropout
							a    =			summary_proj_to_labels
							super().__init__(**__lowerCamelCase							)






