





'''simple docstring'''




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


_A:					str							=				logging.get_logger(__name__)

_A:					Optional[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							(		UpperCAmelCase_							):
    _A :			str						   =       """audio-spectrogram-transformer"""



    def __init__(  self     ,			__A=768     ,			__A=12     ,			__A=12     ,			__A=3_072     ,			__A="gelu"     ,			__A=0.0     ,			__A=0.0     ,			__A=0.0_2     ,			__A=1E-12     ,			__A=16     ,			__A=True     ,			__A=10     ,			__A=10     ,			__A=1_024     ,			__A=128     ,			**__A     ,			):
     super().__init__(**__A					)

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












'''simple docstring'''




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


_A:					Tuple							=				logging.get_logger(__name__)






class UpperCAmelCase							(		UpperCAmelCase_							):
    _A :			List[Any]						   =       """timm_backbone"""



    def __init__(  self     ,			__A=None     ,			__A=3     ,			__A=True     ,			__A=True     ,			__A=None     ,			**__A     ,			):
     super().__init__(**__A					)
     __UpperCAmelCase					=   backbone
     __UpperCAmelCase					=   num_channels
     __UpperCAmelCase					=   features_only
     __UpperCAmelCase					=   use_pretrained_backbone
     __UpperCAmelCase					=   True
     __UpperCAmelCase					=   out_indices if out_indices is not None else (-1,)





