

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


lowerCAmelCase__						=	logging.get_logger(__name__)

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

class    a__  (   snake_case     ):
			"""simple docstring"""







			__lowerCamelCase	    =    'videomae'


			def __init__(      self , lowercase=224 , lowercase=16 , lowercase=3 , lowercase=16 , lowercase=2 , lowercase=768 , lowercase=12 , lowercase=12 , lowercase=3072 , lowercase="gelu" , lowercase=0.0 , lowercase=0.0 , lowercase=0.02 , lowercase=1e-12 , lowercase=True , lowercase=True , lowercase=6 , lowercase=384 , lowercase=4 , lowercase=1536 , lowercase=True , **lowercase , )					->  str:
							'''simple docstring'''






							super().__init__(**lowercase    )

							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




from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowerCAmelCase__						=	logging.get_logger(__name__)

lowerCAmelCase__						=	{
    """MBZUAI/swiftformer-xs""": """https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json""",
}

class    a__  (   snake_case     ):
			"""simple docstring"""







			__lowerCamelCase	    =    'swiftformer'


			def __init__(      self , lowercase=3 , lowercase=[3, 3, 6, 4] , lowercase=[48, 56, 112, 220] , lowercase=4 , lowercase=[True, True, True, True] , lowercase="gelu" , lowercase=3 , lowercase=2 , lowercase=1 , lowercase=0.0 , lowercase=True , lowercase=1e-5 , lowercase=1e-5 , **lowercase , )					->  Optional[int]:
							'''simple docstring'''






							super().__init__(**lowercase    )
							A__            =     num_channels
							A__            =     depths
							A__            =     embed_dims
							A__            =     mlp_ratio
							A__            =     downsamples
							A__            =     hidden_act
							A__            =     down_patch_size
							A__            =     down_stride
							A__            =     down_pad
							A__            =     drop_path_rate
							A__            =     use_layer_scale
							A__            =     layer_scale_init_value
							A__            =     batch_norm_eps

class    a__  (   snake_case     ):
			"""simple docstring"""







			__lowerCamelCase	    =    version.parse('1.11'     )


			@property
			def        UpperCamelCase						(      self    )					->  Mapping[str, Mapping[int, str]]:
							'''simple docstring'''






							return OrderedDict(
							    [
							        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
							    ]    )


			@property
			def        UpperCamelCase						(      self    )					->  float:
							'''simple docstring'''






							return 1e-4

