



'''simple docstring'''





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


_lowerCAmelCase      						=	logging.get_logger(__name__)

_lowerCAmelCase      						=	{
    '''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        lowerCAmelCase_(				SCREAMING_SNAKE_CASE_     ):
  '''simple docstring'''




  __lowercase							:      Optional[int]				=      '''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.0_2  ,__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  ,)    ->		Tuple:
      super().__init__(**__UpperCAmelCase  ,pad_token_id=__UpperCAmelCase  ,bos_token_id=__UpperCAmelCase  ,eos_token_id=__UpperCAmelCase      )
      lowerCAmelCase__ :  str							      =					vocab_size
      lowerCAmelCase__ :  Union[str, Any]							      =					hidden_size
      lowerCAmelCase__ :  Union[str, Any]							      =					num_hidden_layers
      lowerCAmelCase__ :  Dict							      =					intermediate_size
      lowerCAmelCase__ :  str							      =					num_attention_heads
      lowerCAmelCase__ :  str							      =					attention_head_dim
      lowerCAmelCase__ :  Dict							      =					max_position_embeddings
      lowerCAmelCase__ :  Union[str, Any]							      =					layer_norm_eps
      lowerCAmelCase__ :  List[str]							      =					layerdrop
      lowerCAmelCase__ :  str							      =					hidden_act
      lowerCAmelCase__ :  Dict							      =					initializer_range
      lowerCAmelCase__ :  str							      =					hidden_dropout_prob
      lowerCAmelCase__ :  List[str]							      =					attention_probs_dropout_prob
      lowerCAmelCase__ :  Optional[Any]							      =					pad_token_id
      lowerCAmelCase__ :  Union[str, Any]							      =					bos_token_id
      lowerCAmelCase__ :  List[Any]							      =					eos_token_id
      lowerCAmelCase__ :  str							      =					conv_glu_dim
      lowerCAmelCase__ :  Dict							      =					conv_dropout
      lowerCAmelCase__ :  Optional[int]							      =					num_conv_layers
      lowerCAmelCase__ :  Dict							      =					input_feat_per_channel
      lowerCAmelCase__ :  str							      =					input_channels
      lowerCAmelCase__ :  str							      =					conv_channels
      lowerCAmelCase__ :  List[Any]							      =					ctc_loss_reduction
      lowerCAmelCase__ :  int							      =					ctc_zero_infinity

      # prevents config testing fail with exporting to json
      lowerCAmelCase__ :  Optional[Any]							      =					list(__UpperCAmelCase      )
      lowerCAmelCase__ :  Union[str, 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 maths.prime_factors import prime_factors
def    _SCREAMING_SNAKE_CASE  (       UpperCamelCase			):



    """simple docstring"""





    if not isinstance(UpperCamelCase							,    UpperCamelCase			):
        lowerCAmelCase__ :  int							      =					f"""Input value of [number={number}] must be an integer"""
        raise TypeError(UpperCamelCase			)
    if number < 1:
        raise ValueError("""Input must be a positive integer"""			)
    return -1 if len(prime_factors(UpperCamelCase			)			) % 2 else 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()


