




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


lowerCamelCase       :       List[Any]        =    logging.get_logger(__name__)

lowerCamelCase       :       List[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 						__lowercase		(A__							):




      """simple docstring"""





      _snake_case							     =						"""audio-spectrogram-transformer"""

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

         snake_case      :				Any				=       hidden_size
         snake_case      :				List[Any]				=       num_hidden_layers
         snake_case      :				str				=       num_attention_heads
         snake_case      :				Dict				=       intermediate_size
         snake_case      :				List[Any]				=       hidden_act
         snake_case      :				Optional[Any]				=       hidden_dropout_prob
         snake_case      :				Dict				=       attention_probs_dropout_prob
         snake_case      :				Optional[int]				=       initializer_range
         snake_case      :				Any				=       layer_norm_eps
         snake_case      :				Optional[int]				=       patch_size
         snake_case      :				Tuple				=       qkv_bias
         snake_case      :				str				=       frequency_stride
         snake_case      :				int				=       time_stride
         snake_case      :				Any				=       max_length
         snake_case      :				Optional[int]				=       num_mel_bins






def       _snake_case	(   lowerCAmelCase							:   int	):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		Tuple				      =    int(lowerCAmelCase	)
		if decimal in (0, 1):  # Exit cases for the recursion
				return str(lowerCAmelCase	)
		SCREAMING_SNAKE_CASE_      ,    SCREAMING_SNAKE_CASE_  :		Dict				      =    divmod(lowerCAmelCase   , 2	)
		return binary_recursive(lowerCAmelCase	) + str(lowerCAmelCase	)




def       _snake_case	(   lowerCAmelCase							:   str	):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		str				      =    str(lowerCAmelCase	).strip()
		if not number:
				raise ValueError("No input value was provided"	)
		SCREAMING_SNAKE_CASE_  :		List[str]				      =    "-" if number.startswith("-"	) else ""
		SCREAMING_SNAKE_CASE_  :		Optional[Any]				      =    number.lstrip("-"	)
		if not number.isnumeric():
				raise ValueError("Input value is not an integer"	)
		return f'{negative}0b{binary_recursive(int(lowerCAmelCase	)	)}'


if __name__ == "__main__":
		from doctest import testmod

		testmod()
