


'''simple docstring'''


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


UpperCAmelCase_						:  List[Any]				  =						logging.get_logger(__name__)

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





class        lowercase__    (		_snake_case   ):





							'''simple docstring'''


							A_				: List[str]       =    """audio-spectrogram-transformer"""






							def __init__(       self       ,   __snake_case=768       ,   __snake_case=12       ,   __snake_case=12       ,   __snake_case=3072       ,   __snake_case="gelu"       ,   __snake_case=0.0       ,   __snake_case=0.0       ,   __snake_case=0.02       ,   __snake_case=1e-12       ,   __snake_case=16       ,   __snake_case=True       ,   __snake_case=10       ,   __snake_case=10       ,   __snake_case=1024       ,   __snake_case=128       ,   **__snake_case       ,   ):
											super().__init__(**__snake_case    )

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








'''simple docstring'''


import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
UpperCAmelCase_						:  List[Any]				  =						'.'


if __name__ == "__main__":
				UpperCAmelCase_						:  Any				  =						os.path.join(REPO_PATH, 'utils/documentation_tests.txt')
				UpperCAmelCase_						:  Dict				  =						[]
				UpperCAmelCase_						:  Union[str, Any]				  =						[]
				with open(doctest_file_path) as fp:
								for line in fp:
												UpperCAmelCase_						:  int				  =						line.strip()
												UpperCAmelCase_						:  str				  =						os.path.join(REPO_PATH, line)
												if not (os.path.isfile(path) or os.path.isdir(path)):
																non_existent_paths.append(line)
												all_paths.append(path)
				if len(non_existent_paths) > 0:
								UpperCAmelCase_						:  int				  =						'\n'.join(non_existent_paths)
								raise ValueError(F"`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}")
				if all_paths != sorted(all_paths):
								raise ValueError('Files in `utils/documentation_tests.txt` are not in alphabetical order.')




