"""simple docstring"""


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


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

lowerCAmelCase_:					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	):
   snake_case_							=      "mctct"


   def __init__(     self,				_UpperCAmelCase=8065,				_UpperCAmelCase=1536,				_UpperCAmelCase=36,				_UpperCAmelCase=6144,				_UpperCAmelCase=4,				_UpperCAmelCase=384,				_UpperCAmelCase=920,				_UpperCAmelCase=1E-5,				_UpperCAmelCase=0.3,				_UpperCAmelCase="relu",				_UpperCAmelCase=0.02,				_UpperCAmelCase=0.3,				_UpperCAmelCase=0.3,				_UpperCAmelCase=1,				_UpperCAmelCase=0,				_UpperCAmelCase=2,				_UpperCAmelCase=1,				_UpperCAmelCase=0.3,				_UpperCAmelCase=1,				_UpperCAmelCase=(7,),				_UpperCAmelCase=(3,),				_UpperCAmelCase=80,				_UpperCAmelCase=1,				_UpperCAmelCase=None,				_UpperCAmelCase="sum",				_UpperCAmelCase=False,				**_UpperCAmelCase,				):
        '''simple docstring'''



        super().__init__(**lowerCAmelCase_,				pad_token_id=lowerCAmelCase_,				bos_token_id=lowerCAmelCase_,				eos_token_id=lowerCAmelCase_  )
        lowercase__				 =							vocab_size
        lowercase__				 =							hidden_size
        lowercase__				 =							num_hidden_layers
        lowercase__				 =							intermediate_size
        lowercase__				 =							num_attention_heads
        lowercase__				 =							attention_head_dim
        lowercase__				 =							max_position_embeddings
        lowercase__				 =							layer_norm_eps
        lowercase__				 =							layerdrop
        lowercase__				 =							hidden_act
        lowercase__				 =							initializer_range
        lowercase__				 =							hidden_dropout_prob
        lowercase__				 =							attention_probs_dropout_prob
        lowercase__				 =							pad_token_id
        lowercase__				 =							bos_token_id
        lowercase__				 =							eos_token_id
        lowercase__				 =							conv_glu_dim
        lowercase__				 =							conv_dropout
        lowercase__				 =							num_conv_layers
        lowercase__				 =							input_feat_per_channel
        lowercase__				 =							input_channels
        lowercase__				 =							conv_channels
        lowercase__				 =							ctc_loss_reduction
        lowercase__				 =							ctc_zero_infinity

        # prevents config testing fail with exporting to json
        lowercase__				 =							list(lowerCAmelCase_  )
        lowercase__				 =							list(lowerCAmelCase_  )

        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 __future__ import annotations







def 					__a   (		A    ,				A      ):






     '''simple docstring'''



     if partitions <= 0:
          raise ValueError("partitions must be a positive number!"      )
     if partitions > number_of_bytes:
          raise ValueError("partitions can not > number_of_bytes!"      )
     lowercase__				 =							number_of_bytes // partitions
     lowercase__				 =							[]
     for i in range(A      ):
          lowercase__				 =							i * bytes_per_partition + 1
          lowercase__				 =							(
              number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
          )
          allocation_list.append(f'''{start_bytes}-{end_bytes}'''      )
     return allocation_list


if __name__ == "__main__":
 import doctest

 doctest.testmod()




