






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


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

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


class  __lowercase (		lowercase_					):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE				  =			"videomae"




     def __init__(			self    :     int	,		UpperCamelCase_    :     Union[str, Any]=224	,		UpperCamelCase_    :     Union[str, Any]=16	,		UpperCamelCase_    :     Any=3	,		UpperCamelCase_    :     int=16	,		UpperCamelCase_    :     List[Any]=2	,		UpperCamelCase_    :     List[str]=768	,		UpperCamelCase_    :     Union[str, Any]=12	,		UpperCamelCase_    :     str=12	,		UpperCamelCase_    :     List[str]=3_072	,		UpperCamelCase_    :     List[Any]="gelu"	,		UpperCamelCase_    :     Optional[Any]=0.0	,		UpperCamelCase_    :     Any=0.0	,		UpperCamelCase_    :     List[str]=0.02	,		UpperCamelCase_    :     Any=1e-12	,		UpperCamelCase_    :     Any=True	,		UpperCamelCase_    :     int=True	,		UpperCamelCase_    :     Tuple=6	,		UpperCamelCase_    :     Dict=384	,		UpperCamelCase_    :     Tuple=4	,		UpperCamelCase_    :     List[Any]=1_536	,		UpperCamelCase_    :     Any=True	,		**UpperCamelCase_    :     Optional[Any]	,		):


          """simple docstring"""



          super().__init__(**__A			)

          __A             =		image_size
          __A             =		patch_size
          __A             =		num_channels
          __A             =		num_frames
          __A             =		tubelet_size

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

          __A             =		decoder_num_attention_heads
          __A             =		decoder_hidden_size
          __A             =		decoder_num_hidden_layers
          __A             =		decoder_intermediate_size
          __A             =		norm_pix_loss












def      _SCREAMING_SNAKE_CASE  (	__lowercase				:     list[int]      )  -> list[int]:





    """simple docstring"""

    if len(__lowercase      ) > 1:
        __A             =		len(__lowercase      ) // 2  # Finds the middle of the array
        __A             =		arr[
            :middle_length
        ]  # Creates an array of the elements in the first half.
        __A             =		arr[
            middle_length:
        ]  # Creates an array of the elements in the second half.
        __A             =		len(__lowercase      )
        __A             =		len(__lowercase      )
        merge(__lowercase      )  # Starts sorting the left.
        merge(__lowercase      )  # Starts sorting the right
        __A             =		0  # Left Counter
        __A             =		0  # Right Counter
        __A             =		0  # Position Counter
        while (
            left_index < left_size and right_index < right_size
        ):  # Runs until the lowers size of the left and right are sorted.
            if left_array[left_index] < right_array[right_index]:
                __A             =		left_array[left_index]
                left_index += 1
            else:
                __A             =		right_array[right_index]
                right_index += 1
            index += 1
        while (
            left_index < left_size
        ):  # Adds the left over elements in the left half of the array
            __A             =		left_array[left_index]
            left_index += 1
            index += 1
        while (
            right_index < right_size
        ):  # Adds the left over elements in the right half of the array
            __A             =		right_array[right_index]
            right_index += 1
            index += 1
    return arr


if __name__ == "__main__":
  import doctest

  doctest.testmod()




