
'''simple docstring'''

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


UpperCAmelCase__   : int					=		logging.get_logger(__name__)

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






class    A     (	_SCREAMING_SNAKE_CASE    ):
	snake_case__      :int        =     'videomae'





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


				"""simple docstring"""

				super().__init__(**__A							)

				lowerCAmelCase__								=							image_size
				lowerCAmelCase__								=							patch_size
				lowerCAmelCase__								=							num_channels
				lowerCAmelCase__								=							num_frames
				lowerCAmelCase__								=							tubelet_size

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

				lowerCAmelCase__								=							decoder_num_attention_heads
				lowerCAmelCase__								=							decoder_hidden_size
				lowerCAmelCase__								=							decoder_num_hidden_layers
				lowerCAmelCase__								=							decoder_intermediate_size
				lowerCAmelCase__								=							norm_pix_loss







'''simple docstring'''

from __future__ import annotations







def   A     (      UpperCamelCase_					:     int      )					->       list[int]:







			'''simple docstring'''



			assert (
			    isinstance(UpperCamelCase_						,	UpperCamelCase_      ) and mask > 0
			), F"""mask needs to be positive integer, your input {mask}"""
			lowerCAmelCase__								=							[]
			lowerCAmelCase__								=							mask

			while submask:
						all_submasks.append(UpperCamelCase_      )
						lowerCAmelCase__								=							(submask - 1) & mask

			return all_submasks


if __name__ == "__main__":
		import doctest

		doctest.testmod()





