

'''simple docstring'''





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


UpperCamelCase_						     =					logging.get_logger(__name__)

UpperCamelCase_						     =					{
    """speechbrain/m-ctc-t-large""": """https://huggingface.co/speechbrain/m-ctc-t-large/resolve/main/config.json""",
    # See all M-CTC-T models at https://huggingface.co/models?filter=mctct
}





class 		__SCREAMING_SNAKE_CASE       ( lowercase__			):
				lowerCamelCase_							=						'mctct'







				def __init__(					self    :		Any		,				UpperCAmelCase__    :		str=8065		,				UpperCAmelCase__    :		str=1536		,				UpperCAmelCase__    :		int=36		,				UpperCAmelCase__    :		Union[str, Any]=6144		,				UpperCAmelCase__    :		str=4		,				UpperCAmelCase__    :		str=384		,				UpperCAmelCase__    :		List[str]=920		,				UpperCAmelCase__    :		Dict=1E-5		,				UpperCAmelCase__    :		Any=0.3		,				UpperCAmelCase__    :		int="relu"		,				UpperCAmelCase__    :		Dict=0.02		,				UpperCAmelCase__    :		Optional[Any]=0.3		,				UpperCAmelCase__    :		Dict=0.3		,				UpperCAmelCase__    :		Any=1		,				UpperCAmelCase__    :		Any=0		,				UpperCAmelCase__    :		List[str]=2		,				UpperCAmelCase__    :		List[Any]=1		,				UpperCAmelCase__    :		Optional[Any]=0.3		,				UpperCAmelCase__    :		int=1		,				UpperCAmelCase__    :		Dict=(7,)		,				UpperCAmelCase__    :		Any=(3,)		,				UpperCAmelCase__    :		Union[str, Any]=80		,				UpperCAmelCase__    :		Optional[Any]=1		,				UpperCAmelCase__    :		Dict=None		,				UpperCAmelCase__    :		List[str]="sum"		,				UpperCAmelCase__    :		Optional[Any]=False		,				**UpperCAmelCase__    :		Dict		,				):
										'''simple docstring'''
										super().__init__(**UpperCAmelCase__		,				pad_token_id=UpperCAmelCase__		,				bos_token_id=UpperCAmelCase__		,				eos_token_id=UpperCAmelCase__      )
										lowercase   :       str								=vocab_size
										lowercase   :       int								=hidden_size
										lowercase   :       Union[str, Any]								=num_hidden_layers
										lowercase   :       Optional[Any]								=intermediate_size
										lowercase   :       Tuple								=num_attention_heads
										lowercase   :       Tuple								=attention_head_dim
										lowercase   :       str								=max_position_embeddings
										lowercase   :       str								=layer_norm_eps
										lowercase   :       int								=layerdrop
										lowercase   :       Dict								=hidden_act
										lowercase   :       List[str]								=initializer_range
										lowercase   :       Optional[Any]								=hidden_dropout_prob
										lowercase   :       Dict								=attention_probs_dropout_prob
										lowercase   :       Dict								=pad_token_id
										lowercase   :       Union[str, Any]								=bos_token_id
										lowercase   :       Optional[int]								=eos_token_id
										lowercase   :       Optional[Any]								=conv_glu_dim
										lowercase   :       Any								=conv_dropout
										lowercase   :       int								=num_conv_layers
										lowercase   :       Optional[Any]								=input_feat_per_channel
										lowercase   :       Optional[int]								=input_channels
										lowercase   :       List[str]								=conv_channels
										lowercase   :       Optional[Any]								=ctc_loss_reduction
										lowercase   :       Optional[Any]								=ctc_zero_infinity

										# prevents config testing fail with exporting to json
										lowercase   :       Optional[int]								=list(UpperCAmelCase__      )
										lowercase   :       Optional[Any]								=list(UpperCAmelCase__      )

										if len(self.conv_kernel      ) != self.num_conv_layers:
																raise ValueError(
																    '''Configuration for convolutional module is incorrect. '''
																    '''It is required that `len(config.conv_kernel)` == `config.num_conv_layers` '''
																    F'''but is `len(config.conv_kernel) = {len(self.conv_kernel      )}`, '''
																    F'''`config.num_conv_layers = {self.num_conv_layers}`.'''      )








'''simple docstring'''





from transformers import HfArgumentParser, TensorFlowBenchmark, TensorFlowBenchmarkArguments






def 							_lowerCAmelCase (      )							->     List[Any]:
						lowercase   :       Tuple								=HfArgumentParser(__magic_name__	)
						lowercase   :       Union[str, Any]								=parser.parse_args_into_dataclasses()[0]
						lowercase   :       Any								=TensorFlowBenchmark(args=__magic_name__	)
						try:
												lowercase   :       List[Any]								=parser.parse_args_into_dataclasses()[0]
						except ValueError as e:
												lowercase   :       List[Any]								='''Arg --no_{0} is no longer used, please use --no-{0} instead.'''
												lowercase   :       Any								=''' '''.join(str(__magic_name__	).split(''' '''	)[:-1]	)
												lowercase   :       Optional[Any]								=''''''
												lowercase   :       List[str]								=eval(str(__magic_name__	).split(''' '''	)[-1]	)
												lowercase   :       Optional[Any]								=[]
												for arg in depreciated_args:
																		# arg[2:] removes '--'
																		if arg[2:] in TensorFlowBenchmark.deprecated_args:
																								# arg[5:] removes '--no_'
																								full_error_msg += arg_error_msg.format(arg[5:]	)
																		else:
																								wrong_args.append(__magic_name__	)
												if len(__magic_name__	) > 0:
																		lowercase   :       int								=full_error_msg + begin_error_msg + str(__magic_name__	)
												raise ValueError(__magic_name__	)
						benchmark.run()


if __name__ == "__main__":
							main()





