






from __future__ import annotations

from collections.abc import Iterator




class 				__A     :





				"""simple docstring"""







				def __init__( self							,  lowerCamelCase__    ):




									"""simple docstring"""

									__UpperCamelCase      :					Union[str, Any]       		=value
									__UpperCamelCase      :					Node | None       		=None
									__UpperCamelCase      :					Node | None       		=None




class 				__A     :





				"""simple docstring"""







				def __init__( self							,  lowerCamelCase__    ):




									"""simple docstring"""

									__UpperCamelCase      :					List[str]       		=tree


				def       __lowercase							( self							,  lowerCamelCase__    ):




									"""simple docstring"""

									if node is None:
														return 0
									return node.value + (
									    self.depth_first_search(node.left    ) + self.depth_first_search(node.right    )
									)







				def __iter__( self    ):




									"""simple docstring"""

									yield self.depth_first_search(self.tree    )


if __name__ == "__main__":
							import doctest

							doctest.testmod()


"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowercase__					       =	logging.get_logger(__name__)

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




class    __snake_case       (     __lowerCAmelCase				):
      a__        =		"""audio-spectrogram-transformer"""



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





        '''simple docstring'''





        super().__init__(**lowercase)

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


