


'''simple docstring'''







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


lowerCAmelCase			:   int 		=  logging.get_logger(__name__)

lowerCAmelCase			:   Tuple 		=  {
    'MCG-NJU/videomae-base': 'https://huggingface.co/MCG-NJU/videomae-base/resolve/main/config.json',
}
class 		UpperCamelCase__    (       _a		):



     """simple docstring"""






     __magic_name__				=			"videomae"







     def __init__(       self					,		snake_case__=224					,		snake_case__=16					,		snake_case__=3					,		snake_case__=16					,		snake_case__=2					,		snake_case__=768					,		snake_case__=12					,		snake_case__=12					,		snake_case__=3072					,		snake_case__="gelu"					,		snake_case__=0.0					,		snake_case__=0.0					,		snake_case__=0.02					,		snake_case__=1E-12					,		snake_case__=True					,		snake_case__=True					,		snake_case__=6					,		snake_case__=384					,		snake_case__=4					,		snake_case__=1536					,		snake_case__=True					,		**snake_case__					,		):

            '''simple docstring'''

            super().__init__(**lowerCAmelCase_      )

            _lowerCAmelCase			:							List[str]      	=				image_size
            _lowerCAmelCase			:							List[str]      	=				patch_size
            _lowerCAmelCase			:							Dict      	=				num_channels
            _lowerCAmelCase			:							Any      	=				num_frames
            _lowerCAmelCase			:							Union[str, Any]      	=				tubelet_size

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

            _lowerCAmelCase			:							Optional[Any]      	=				decoder_num_attention_heads
            _lowerCAmelCase			:							Dict      	=				decoder_hidden_size
            _lowerCAmelCase			:							Dict      	=				decoder_num_hidden_layers
            _lowerCAmelCase			:							str      	=				decoder_intermediate_size
            _lowerCAmelCase			:							List[Any]      	=				norm_pix_loss







'''simple docstring'''


from __future__ import annotations

from enum import Enum

class 			A    (		_a    ):
							lowercase_							=				24
							lowercase_							=				21
							lowercase_							=				18
							lowercase_							=				15
							lowercase_							=				12
							lowercase_							=				9
							lowercase_							=				6
							lowercase_							=				3
							lowercase_							=				2
							lowercase_							=				1
							lowercase_							=				-1
							lowercase_							=				-2
							lowercase_							=				-3
							lowercase_							=				-6
							lowercase_							=				-9
							lowercase_							=				-12
							lowercase_							=				-15
							lowercase_							=				-18
							lowercase_							=				-21
							lowercase_							=				-24



class 			A    (		_a    ):
							lowercase_							=				8
							lowercase_							=				7
							lowercase_							=				6
							lowercase_							=				5
							lowercase_							=				4
							lowercase_							=				3
							lowercase_							=				2
							lowercase_							=				1



def 		snake_case_    (UpperCamelCase       :  float ,						UpperCamelCase       :  str | SIUnit ,						UpperCamelCase       :  str | SIUnit ,						):





							'''simple docstring'''


							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				SIUnit[known_prefix.lower()]
							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				SIUnit[unknown_prefix.lower()]
							_a	     =				known_amount * (
							    10 ** (known_prefix.value - unknown_prefix.value)
							)
							return unknown_amount
def 		snake_case_    (UpperCamelCase       :  float ,						UpperCamelCase       :  str | BinaryUnit ,						UpperCamelCase       :  str | BinaryUnit ,						):





							'''simple docstring'''


							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				BinaryUnit[known_prefix.lower()]
							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				BinaryUnit[unknown_prefix.lower()]
							_a	     =				known_amount * (
							    2 ** ((known_prefix.value - unknown_prefix.value) * 10)
							)
							return unknown_amount


if __name__ == "__main__":
				import doctest

				doctest.testmod()

