






'''simple docstring'''

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


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

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






class 							__magic_name__     (	__UpperCAmelCase				):







	"""simple docstring"""



	SCREAMING_SNAKE_CASE_					:      Dict        =  'audio-spectrogram-transformer'
	def __init__(							self  ,      _lowercase=768  ,      _lowercase=12  ,      _lowercase=12  ,      _lowercase=3072  ,      _lowercase="gelu"  ,      _lowercase=0.0  ,      _lowercase=0.0  ,      _lowercase=0.02  ,      _lowercase=1E-1_2  ,      _lowercase=16  ,      _lowercase=True  ,      _lowercase=10  ,      _lowercase=10  ,      _lowercase=1024  ,      _lowercase=128  ,      **_lowercase  ,      )						->  Tuple:
							super().__init__(**lowerCAmelCase_       )

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








'''simple docstring'''

from ..utils import DummyObject, requires_backends






class 							__magic_name__     (	metaclass=UpperCAmelCase_				):







	"""simple docstring"""



	SCREAMING_SNAKE_CASE_					:      str        =  ['transformers', 'torch', 'note_seq']
	def __init__(							self  ,      *_lowercase  ,      **_lowercase       )						->  Dict:
							requires_backends(self  ,      ['transformers', 'torch', 'note_seq']       )
	@classmethod
	def        lowerCamelCase__		(							cls  ,      *_lowercase  ,      **_lowercase       )						->  List[str]:
							requires_backends(cls  ,      ['transformers', 'torch', 'note_seq']       )







	@classmethod
	def        lowerCamelCase__		(							cls  ,      *_lowercase  ,      **_lowercase       )						->  Dict:
							requires_backends(cls  ,      ['transformers', 'torch', 'note_seq']       )
