'''simple docstring'''






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


SCREAMING_SNAKE_CASE_	   =			logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_	   =			{
    'facebook/s2t-wav2vec2-large-en-de': (
        'https://huggingface.co/facebook/s2t-wav2vec2-large-en-de/resolve/main/config.json'
    ),
    # See all Speech2Text models at https://huggingface.co/models?filter=speech2text2
}




class    a (       __lowerCAmelCase				):



  """simple docstring"""
  __lowerCAmelCase				      =					"""speech_to_text_2"""
  __lowerCAmelCase				      =					["""past_key_values"""]
  __lowerCAmelCase				      =					{"""num_attention_heads""": """decoder_attention_heads""", """hidden_size""": """d_model"""}







  def __init__(							self   ,    snake_case_=1_0000   ,    snake_case_=6   ,    snake_case_=2048   ,    snake_case_=4   ,    snake_case_=0.0   ,    snake_case_=True   ,    snake_case_="relu"   ,    snake_case_=256   ,    snake_case_=0.1   ,    snake_case_=0.0   ,    snake_case_=0.0   ,    snake_case_=0.0_2   ,    snake_case_=2   ,    snake_case_=True   ,    snake_case_=1   ,    snake_case_=0   ,    snake_case_=2   ,    snake_case_=1024   ,    **snake_case_   ,    ):

    '''simple docstring'''







    __UpperCAmelCase:					str		= vocab_size
    __UpperCAmelCase:					Tuple		= d_model
    __UpperCAmelCase:					int		= decoder_ffn_dim
    __UpperCAmelCase:					int		= decoder_layers
    __UpperCAmelCase:					Optional[int]		= decoder_attention_heads
    __UpperCAmelCase:					Tuple		= dropout
    __UpperCAmelCase:					Any		= attention_dropout
    __UpperCAmelCase:					List[str]		= activation_dropout
    __UpperCAmelCase:					List[Any]		= activation_function
    __UpperCAmelCase:					List[str]		= init_std
    __UpperCAmelCase:					Union[str, Any]		= decoder_layerdrop
    __UpperCAmelCase:					int		= use_cache
    __UpperCAmelCase:					Optional[int]		= decoder_layers
    __UpperCAmelCase:					List[str]		= scale_embedding  # scale factor will be sqrt(d_model) if True
    __UpperCAmelCase:					List[str]		= max_target_positions

    super().__init__(
        pad_token_id=snake_case_   ,    bos_token_id=snake_case_   ,    eos_token_id=snake_case_   ,    decoder_start_token_id=snake_case_   ,    **snake_case_   ,    )
'''simple docstring'''






def  UpperCamelCase__					(					_lowercase    :				int     )							->	int:

  if not isinstance(_lowercase   ,    _lowercase     ):
    __UpperCAmelCase:					List[str]		= F'''Input value of [number={number}] must be an integer'''
    raise TypeError(_lowercase     )

  if number < 1:
    __UpperCAmelCase:					Dict		= F'''Input value of [number={number}] must be > 0'''
    raise ValueError(_lowercase     )

  __UpperCAmelCase:					int		= 1

  for i in range(1   ,    _lowercase     ):
    current_number *= 4 * i - 2
    current_number //= i + 1

  return current_number


if __name__ == "__main__":
    import doctest

    doctest.testmod()