




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


a_ 		=  logging.get_logger(__name__)

a_ 		=  {
    "MCG-NJU/videomae-base": "https://huggingface.co/MCG-NJU/videomae-base/resolve/main/config.json",
}

class 			_lowerCamelCase    (      _SCREAMING_SNAKE_CASE ):

      """simple docstring"""

      lowerCAmelCase__      :			Optional[Any]     =       "videomae"







      def __init__(  self       :			List[str]			,							snake_case       :			int=224			,							snake_case       :			int=16			,							snake_case       :			List[Any]=3			,							snake_case       :			List[str]=16			,							snake_case       :			int=2			,							snake_case       :			Union[str, Any]=768			,							snake_case       :			int=12			,							snake_case       :			Any=12			,							snake_case       :			List[str]=3072			,							snake_case       :			Union[str, Any]="gelu"			,							snake_case       :			Optional[Any]=0.0			,							snake_case       :			Union[str, Any]=0.0			,							snake_case       :			Dict=0.02			,							snake_case       :			str=1E-12			,							snake_case       :			Union[str, Any]=True			,							snake_case       :			str=True			,							snake_case       :			Union[str, Any]=6			,							snake_case       :			Optional[Any]=384			,							snake_case       :			str=4			,							snake_case       :			Dict=1536			,							snake_case       :			Dict=True			,							**snake_case       :			Tuple			,							):
          super().__init__(**snake_case					)

          __UpperCamelCase			=    image_size
          __UpperCamelCase			=    patch_size
          __UpperCamelCase			=    num_channels
          __UpperCamelCase			=    num_frames
          __UpperCamelCase			=    tubelet_size

          __UpperCamelCase			=    hidden_size
          __UpperCamelCase			=    num_hidden_layers
          __UpperCamelCase			=    num_attention_heads
          __UpperCamelCase			=    intermediate_size
          __UpperCamelCase			=    hidden_act
          __UpperCamelCase			=    hidden_dropout_prob
          __UpperCamelCase			=    attention_probs_dropout_prob
          __UpperCamelCase			=    initializer_range
          __UpperCamelCase			=    layer_norm_eps
          __UpperCamelCase			=    qkv_bias
          __UpperCamelCase			=    use_mean_pooling

          __UpperCamelCase			=    decoder_num_attention_heads
          __UpperCamelCase			=    decoder_hidden_size
          __UpperCamelCase			=    decoder_num_hidden_layers
          __UpperCamelCase			=    decoder_intermediate_size
          __UpperCamelCase			=    norm_pix_loss












'''simple docstring'''







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


A					       =logging.get_logger(__name__)

A					       ={
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}


class      _a    (      __a					):
       __a							:	Optional[int]  							=   """regnet"""
       __a							:	Optional[Any]  							=   ["""x""", """y"""]
       def __init__(      self		:      int  ,							lowercase		:      List[Any]=3  ,							lowercase		:      Union[str, Any]=32  ,							lowercase		:      Tuple=[128, 192, 512, 1_088]  ,							lowercase		:      List[Any]=[2, 6, 12, 2]  ,							lowercase		:      Optional[Any]=64  ,							lowercase		:      Optional[int]="y"  ,							lowercase		:      int="relu"  ,							**lowercase		:      int  ,							):



           '''simple docstring'''

           super().__init__(**lowercase							)
           if layer_type not in self.layer_types:
               raise ValueError(f"layer_type={layer_type} is not one of {','.join(self.layer_types							)}"							)
           UpperCAmelCase     			=						num_channels
           UpperCAmelCase     			=						embedding_size
           UpperCAmelCase     			=						hidden_sizes
           UpperCAmelCase     			=						depths
           UpperCAmelCase     			=						groups_width
           UpperCAmelCase     			=						layer_type
           UpperCAmelCase     			=						hidden_act
           # always downsample in the first stage
           UpperCAmelCase     			=						True




