
"""simple docstring"""




from __future__ import annotations

import math

def lowercase_  (   _snake_case   ,_snake_case   ,_snake_case   ,_snake_case   ,_snake_case						):

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

							if len(_snake_case						) == 0:
														raise ValueError("""Scores cannot be empty"""						)

							if depth == height:
														return scores[node_index]

							if is_max:
														return max(
														    minimax(depth + 1   ,node_index * 2   ,_snake_case   ,_snake_case   ,_snake_case						)   ,minimax(depth + 1   ,node_index * 2 + 1   ,_snake_case   ,_snake_case   ,_snake_case						)   ,)

							return min(
							    minimax(depth + 1   ,node_index * 2   ,_snake_case   ,_snake_case   ,_snake_case						)   ,minimax(depth + 1   ,node_index * 2 + 1   ,_snake_case   ,_snake_case   ,_snake_case						)   ,)

def lowercase_  (   ):
							SCREAMING_SNAKE_CASE__						:       List[Any]           =   [90, 23, 6, 33, 21, 65, 123, 34_423]
							SCREAMING_SNAKE_CASE__						:       Dict           =   math.log(len(_snake_case						)   ,2						)
							print("""Optimal value : """   ,end=""""""						)
							print(minimax(0   ,0   ,_snake_case   ,_snake_case   ,_snake_case						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					main()






"""simple docstring"""




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


UpperCAmelCase__      :    Optional[Any]    							= logging.get_logger(__name__)

UpperCAmelCase__      :    Dict    							= {
    '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_						(a__  ):


				"""simple docstring"""



				__UpperCamelCase      :						Optional[int]					       =   '''audio-spectrogram-transformer'''



				def __init__(self   ,       SCREAMING_SNAKE_CASE__=7_68   ,       SCREAMING_SNAKE_CASE__=12   ,       SCREAMING_SNAKE_CASE__=12   ,       SCREAMING_SNAKE_CASE__=30_72   ,       SCREAMING_SNAKE_CASE__="gelu"   ,       SCREAMING_SNAKE_CASE__=0.0   ,       SCREAMING_SNAKE_CASE__=0.0   ,       SCREAMING_SNAKE_CASE__=0.02   ,       SCREAMING_SNAKE_CASE__=1E-12   ,       SCREAMING_SNAKE_CASE__=16   ,       SCREAMING_SNAKE_CASE__=True   ,       SCREAMING_SNAKE_CASE__=10   ,       SCREAMING_SNAKE_CASE__=10   ,       SCREAMING_SNAKE_CASE__=10_24   ,       SCREAMING_SNAKE_CASE__=1_28   ,       **SCREAMING_SNAKE_CASE__   ,       )					->		Tuple:



											"""simple docstring"""




											super().__init__(**SCREAMING_SNAKE_CASE__    )

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




