
'''simple docstring'''



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


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

UpperCamelCase__      :		str       							=  {
    "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    _a				(a__):





       """simple docstring"""




       SCREAMING_SNAKE_CASE      =  'mctct'






       def __init__(							self       ,							A__=80_65       ,							A__=15_36       ,							A__=36       ,							A__=61_44       ,							A__=4       ,							A__=3_84       ,							A__=9_20       ,							A__=1E-5       ,							A__=0.3       ,							A__="relu"       ,							A__=0.02       ,							A__=0.3       ,							A__=0.3       ,							A__=1       ,							A__=0       ,							A__=2       ,							A__=1       ,							A__=0.3       ,							A__=1       ,							A__=(7,)       ,							A__=(3,)       ,							A__=80       ,							A__=1       ,							A__=None       ,							A__="sum"       ,							A__=False       ,							**A__       ,							)    ->			str:
          super().__init__(**_A       ,							pad_token_id=_A       ,							bos_token_id=_A       ,							eos_token_id=_A      )
          _SCREAMING_SNAKE_CASE      =				vocab_size
          _SCREAMING_SNAKE_CASE      =				hidden_size
          _SCREAMING_SNAKE_CASE      =				num_hidden_layers
          _SCREAMING_SNAKE_CASE      =				intermediate_size
          _SCREAMING_SNAKE_CASE      =				num_attention_heads
          _SCREAMING_SNAKE_CASE      =				attention_head_dim
          _SCREAMING_SNAKE_CASE      =				max_position_embeddings
          _SCREAMING_SNAKE_CASE      =				layer_norm_eps
          _SCREAMING_SNAKE_CASE      =				layerdrop
          _SCREAMING_SNAKE_CASE      =				hidden_act
          _SCREAMING_SNAKE_CASE      =				initializer_range
          _SCREAMING_SNAKE_CASE      =				hidden_dropout_prob
          _SCREAMING_SNAKE_CASE      =				attention_probs_dropout_prob
          _SCREAMING_SNAKE_CASE      =				pad_token_id
          _SCREAMING_SNAKE_CASE      =				bos_token_id
          _SCREAMING_SNAKE_CASE      =				eos_token_id
          _SCREAMING_SNAKE_CASE      =				conv_glu_dim
          _SCREAMING_SNAKE_CASE      =				conv_dropout
          _SCREAMING_SNAKE_CASE      =				num_conv_layers
          _SCREAMING_SNAKE_CASE      =				input_feat_per_channel
          _SCREAMING_SNAKE_CASE      =				input_channels
          _SCREAMING_SNAKE_CASE      =				conv_channels
          _SCREAMING_SNAKE_CASE      =				ctc_loss_reduction
          _SCREAMING_SNAKE_CASE      =				ctc_zero_infinity

          # prevents config testing fail with exporting to json
          _SCREAMING_SNAKE_CASE      =				list(_A      )
          _SCREAMING_SNAKE_CASE      =				list(_A      )

          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'''



import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline
@pytest.mark.integration
def    lowerCAmelCase_	(				)     ->     List[Any]:




   """simple docstring"""
   with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT						):
      with pytest.raises(SCREAMING_SNAKE_CASE_						):
         requests.request("""GET"""    ,      """https://huggingface.co"""						)
      with pytest.raises(requests.exceptions.ConnectTimeout						):
         requests.request("""GET"""    ,      """https://huggingface.co"""    ,      timeout=1.0						)
@pytest.mark.integration
def    lowerCAmelCase_	(				)     ->     int:




   """simple docstring"""
   with offline(OfflineSimulationMode.CONNECTION_FAILS						):
      with pytest.raises(requests.exceptions.ConnectionError						):
         requests.request("""GET"""    ,      """https://huggingface.co"""						)







def    lowerCAmelCase_	(				)     ->     Optional[Any]:




   """simple docstring"""
   with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1						):
      with pytest.raises(SCREAMING_SNAKE_CASE_						):
         http_head("""https://huggingface.co"""						)






