





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


_snake_case    :       Optional[int]		       =    logging.get_logger(__name__)

_snake_case    :       Union[str, Any]		       =    {
    'MIT/ast-finetuned-audioset-10-10-0.4593': (
        'https://huggingface.co/MIT/ast-finetuned-audioset-10-10-0.4593/resolve/main/config.json'
    ),
}



class 							_UpperCAmelCase       (       _UpperCamelCase       ):

  """simple docstring"""


  a_              =					"""audio-spectrogram-transformer"""






  def __init__(							self					:						Union[str, Any]   ,    lowerCAmelCase_					:						int=7_6_8   ,    lowerCAmelCase_					:						List[Any]=1_2   ,    lowerCAmelCase_					:						int=1_2   ,    lowerCAmelCase_					:						Union[str, Any]=3_0_7_2   ,    lowerCAmelCase_					:						Union[str, Any]="gelu"   ,    lowerCAmelCase_					:						Dict=0.0   ,    lowerCAmelCase_					:						Any=0.0   ,    lowerCAmelCase_					:						List[Any]=0.02   ,    lowerCAmelCase_					:						Optional[Any]=1e-12   ,    lowerCAmelCase_					:						Union[str, Any]=1_6   ,    lowerCAmelCase_					:						Any=True   ,    lowerCAmelCase_					:						str=1_0   ,    lowerCAmelCase_					:						List[Any]=1_0   ,    lowerCAmelCase_					:						Dict=1_0_2_4   ,    lowerCAmelCase_					:						Union[str, Any]=1_2_8   ,    **lowerCAmelCase_					:						str   ,    )				->		Any:
     super().__init__(**lowerCAmelCase_	)

     __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				      =      patch_size
     __lowerCAmelCase				      =      qkv_bias
     __lowerCAmelCase				      =      frequency_stride
     __lowerCAmelCase				      =      time_stride
     __lowerCAmelCase				      =      max_length
     __lowerCAmelCase				      =      num_mel_bins



lowercase   =	8.314_4598



def   __lowerCAmelCase    (				UpperCAmelCase__					:   float      ,					UpperCAmelCase__					:   float							)	->     float:
							if temperature < 0:
														raise Exception("""Temperature cannot be less than 0 K"""							)
							if molar_mass <= 0:
														raise Exception("""Molar mass cannot be less than or equal to 0 kg/mol"""							)
							else:
														return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
		import doctest

		# run doctest
		doctest.testmod()

		# example
		lowercase   =	3_0_0
		lowercase   =	2_8
		lowercase   =	rms_speed_of_molecule(temperature, molar_mass)
		print(F"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")





