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


UpperCAmelCase       =					logging.get_logger(__name__)

UpperCAmelCase       =					{
    '''MIT/ast-finetuned-audioset-10-10-0.4593''': (
        '''https://huggingface.co/MIT/ast-finetuned-audioset-10-10-0.4593/resolve/main/config.json'''
    ),
}







class 			A_  (     __lowerCamelCase  ):




	'''simple docstring'''


	_UpperCamelCase	:	List[Any]									=			"""audio-spectrogram-transformer"""





	def __init__(			self						,       snake_case=768						,       snake_case=12						,       snake_case=12						,       snake_case=3072						,       snake_case="gelu"						,       snake_case=0.0						,       snake_case=0.0						,       snake_case=0.02						,       snake_case=1E-12						,       snake_case=16						,       snake_case=True						,       snake_case=10						,       snake_case=10						,       snake_case=1024						,       snake_case=128						,       **snake_case						,       ):
		super().__init__(**snake_case			)

		lowercase	    =       hidden_size
		lowercase	    =       num_hidden_layers
		lowercase	    =       num_attention_heads
		lowercase	    =       intermediate_size
		lowercase	    =       hidden_act
		lowercase	    =       hidden_dropout_prob
		lowercase	    =       attention_probs_dropout_prob
		lowercase	    =       initializer_range
		lowercase	    =       layer_norm_eps
		lowercase	    =       patch_size
		lowercase	    =       qkv_bias
		lowercase	    =       frequency_stride
		lowercase	    =       time_stride
		lowercase	    =       max_length
		lowercase	    =       num_mel_bins







def        __UpperCAmelCase						(							lowerCamelCase_ :     str  )       ->  bool:







			"""simple docstring"""





			SCREAMING_SNAKE_CASE_   : Any					  =      0
			for ch in input_str:
						SCREAMING_SNAKE_CASE_   : Union[str, Any]					  =      ord(lowerCamelCase_  )
						SCREAMING_SNAKE_CASE_   : Tuple					  =      pow(2  ,							lowerCamelCase_  )

						# If we already turned on bit for current character's unicode
						if bitmap >> ch_unicode & 1 == 1:
									return False
						bitmap |= ch_bit_index_on
			return True


if __name__ == "__main__":
						import doctest

						doctest.testmod()



