

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


UpperCAmelCase_							:					str		 =   logging.get_logger(__name__)

UpperCAmelCase_							:					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      lowerCamelCase_      (	__lowercase	):
	_lowercase		:   Any     					=				'''audio-spectrogram-transformer'''




	def __init__(     self						:     List[Any]					,      __A						:     Optional[Any]=768					,      __A						:     Optional[Any]=12					,      __A						:     int=12					,      __A						:     Union[str, Any]=3072					,      __A						:     List[str]="gelu"					,      __A						:     Any=0.0					,      __A						:     Dict=0.0					,      __A						:     Tuple=0.0_2					,      __A						:     Union[str, Any]=1e-1_2					,      __A						:     str=16					,      __A						:     Optional[Any]=True					,      __A						:     List[Any]=10					,      __A						:     Any=10					,      __A						:     Tuple=1024					,      __A						:     Optional[int]=128					,      **__A						:     int					,      ):
		super().__init__(**__A							)

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












'''simple docstring'''






from __future__ import annotations

import math







def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase ) ->				int:



			"""simple docstring"""


			if depth < 0:
						raise ValueError("""Depth cannot be less than 0""" )

			if not scores:
						raise ValueError("""Scores cannot be empty""" )

			if depth == height:
						return scores[node_index]

			return (
			    max(
			        minimax(depth + 1    ,	node_index * 2    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )    ,	minimax(depth + 1    ,	node_index * 2 + 1    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )    ,	)
			    if is_max
			    else min(
			        minimax(depth + 1    ,	node_index * 2    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )    ,	minimax(depth + 1    ,	node_index * 2 + 1    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )    ,	)
			)







def 					_a						(       ) ->				None:



			"""simple docstring"""


			__snake_case					:      Union[str, Any]							      =     [90, 23, 6, 33, 21, 65, 123, 3_4423]
			__snake_case					:      Optional[int]							      =     math.log(len(_lowerCamelCase )    ,	2 )
			print(F'''Optimal value : {minimax(0    ,	0    ,	_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )}''' )


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	main()


