





from ...configuration_utils import PretrainedConfig







class 				__lowerCAmelCase       (    UpperCamelCase__):
      _lowercase				:					str						=			"""bert-generation"""







      def __init__(    self		,      lowerCAmelCase__=5_0_3_5_8		,      lowerCAmelCase__=1_0_2_4		,      lowerCAmelCase__=2_4		,      lowerCAmelCase__=1_6		,      lowerCAmelCase__=4_0_9_6		,      lowerCAmelCase__="gelu"		,      lowerCAmelCase__=0.1		,      lowerCAmelCase__=0.1		,      lowerCAmelCase__=5_1_2		,      lowerCAmelCase__=0.02		,      lowerCAmelCase__=1E-12		,      lowerCAmelCase__=0		,      lowerCAmelCase__=2		,      lowerCAmelCase__=1		,      lowerCAmelCase__="absolute"		,      lowerCAmelCase__=True		,      **lowerCAmelCase__		,      )   ->						Optional[int]:



        '''simple docstring'''




        super().__init__(pad_token_id=lowerCAmelCase__		,      bos_token_id=lowerCAmelCase__		,      eos_token_id=lowerCAmelCase__		,      **lowerCAmelCase__							)

        a__	:					Optional[Any]										=vocab_size
        a__	:					Optional[int]										=hidden_size
        a__	:					List[str]										=num_hidden_layers
        a__	:					List[Any]										=num_attention_heads
        a__	:					Tuple										=hidden_act
        a__	:					str										=intermediate_size
        a__	:					Any										=hidden_dropout_prob
        a__	:					Optional[int]										=attention_probs_dropout_prob
        a__	:					Optional[Any]										=max_position_embeddings
        a__	:					Optional[int]										=initializer_range
        a__	:					Optional[int]										=layer_norm_eps
        a__	:					int										=position_embedding_type
        a__	:					Optional[int]										=use_cache













def      _A       (		SCREAMING_SNAKE_CASE     :   list						):





  """simple docstring"""



  if not isinstance(SCREAMING_SNAKE_CASE       ,       SCREAMING_SNAKE_CASE						):
    raise ValueError("Input series is not valid, valid series - [2, 4, 6]"						)
  if len(SCREAMING_SNAKE_CASE						) == 0:
    raise ValueError("Input list must be a non empty list"						)
  if len(SCREAMING_SNAKE_CASE						) == 1:
    return True
  a__	:					Union[str, Any]										=series[1] - series[0]
  for index in range(len(SCREAMING_SNAKE_CASE						) - 1						):
    if series[index + 1] - series[index] != common_diff:
      return False
  return True
def      _A       (		SCREAMING_SNAKE_CASE     :   list						):





  """simple docstring"""



  if not isinstance(SCREAMING_SNAKE_CASE       ,       SCREAMING_SNAKE_CASE						):
    raise ValueError("Input series is not valid, valid series - [2, 4, 6]"						)
  if len(SCREAMING_SNAKE_CASE						) == 0:
    raise ValueError("Input list must be a non empty list"						)
  a__	:					Any										=0
  for val in series:
    answer += val
  return answer / len(SCREAMING_SNAKE_CASE						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()






