






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


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

__UpperCamelCase      :      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        __UpperCamelCase    (     _lowerCAmelCase   ):
	__snake_case	:Any   =       'audio-spectrogram-transformer'







	def __init__(  self      :							Any       ,				_lowerCAmelCase      :							Optional[Any]=768       ,				_lowerCAmelCase      :							Tuple=12       ,				_lowerCAmelCase      :							Optional[Any]=12       ,				_lowerCAmelCase      :							Optional[Any]=3072       ,				_lowerCAmelCase      :							int="gelu"       ,				_lowerCAmelCase      :							Union[str, Any]=0.0       ,				_lowerCAmelCase      :							int=0.0       ,				_lowerCAmelCase      :							str=0.02       ,				_lowerCAmelCase      :							List[Any]=1e-12       ,				_lowerCAmelCase      :							Any=16       ,				_lowerCAmelCase      :							Any=True       ,				_lowerCAmelCase      :							List[Any]=10       ,				_lowerCAmelCase      :							Dict=10       ,				_lowerCAmelCase      :							Optional[Any]=1024       ,				_lowerCAmelCase      :							Optional[int]=128       ,				**_lowerCAmelCase      :							Optional[Any]       ,				)		-> str:
		"""simple docstring"""







		super().__init__(**_lowerCAmelCase			)

		__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









from __future__ import annotations





def 				snake_case  (     lowerCamelCase					):




	'''simple docstring'''







	if len(lowerCamelCase					) < 2:
		raise ValueError("""Monogons and Digons are not polygons in the Euclidean space"""					)
	if any(i <= 0 for i in nums					):
		raise ValueError("""All values must be greater than 0"""					)
	__lowercase             =  nums.copy()
	copy_nums.sort()
	return copy_nums[-1] < sum(copy_nums[:-1]					)


if __name__ == "__main__":
						import doctest

						doctest.testmod()

