
"""simple docstring"""





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


_a								=						logging.get_logger(__name__)

_a								=						{
    """google/vivit-b-16x2-kinetics400""": (
        """https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json"""
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}






class        _UpperCAmelCase(       lowerCamelCase      ):
		lowercase__         = 'vivit'



		def __init__(   self							,						__a=2_24							,						__a=32							,						__a=[2, 16, 16]							,						__a=3							,						__a=7_68							,						__a=12							,						__a=12							,						__a=30_72							,						__a="gelu_fast"							,						__a=0.0							,						__a=0.0							,						__a=0.02							,						__a=1e-06							,						__a=True							,						**__a							,						)			->			int:






							'''simple docstring'''
							_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									=    image_size
							_UpperCamelCase									=    num_frames
							_UpperCamelCase									=    tubelet_size
							_UpperCamelCase									=    num_channels
							_UpperCamelCase									=    qkv_bias

							super().__init__(**__a)













SCREAMING_SNAKE_CASE_   :      dict[str, float]			=   {
    "joule": 1.0,
    "kilojoule": 1000,
    "megajoule": 100_0000,
    "gigajoule": 10_0000_0000,
    "wattsecond": 1.0,
    "watthour": 3600,
    "kilowatthour": 360_0000,
    "newtonmeter": 1.0,
    "calorie_nutr": 4186.8,
    "kilocalorie_nutr": 418_6800.00,
    "electronvolt": 1.6_0_2_1_7_6_6_3_4e-1_9,
    "britishthermalunit_it": 1055.0_5585,
    "footpound": 1.35_5818,
}



def  SCREAMING_SNAKE_CASE				(      snake_case						,   snake_case						,   snake_case							)		->    float:
		if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
				__lowercase											=     (
				    F"Incorrect 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"
				    F"Valid values are: {', '.join(snake_case							)}"
				)
				raise ValueError(snake_case							)
		return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
		import doctest

		doctest.testmod()




