

'''simple docstring'''







from ... import PretrainedConfig


__lowerCamelCase						    =      {
    '''sijunhe/nezha-cn-base''': '''https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json''',
}


class    A__ ( _snake_case     ):
    lowercase		   =						NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
    lowercase		   =						"nezha"



    def __init__(   self						,			UpperCamelCase__=21128						,			UpperCamelCase__=768						,			UpperCamelCase__=12						,			UpperCamelCase__=12						,			UpperCamelCase__=3072						,			UpperCamelCase__="gelu"						,			UpperCamelCase__=0.1						,			UpperCamelCase__=0.1						,			UpperCamelCase__=512						,			UpperCamelCase__=64						,			UpperCamelCase__=2						,			UpperCamelCase__=0.02						,			UpperCamelCase__=1e-1_2						,			UpperCamelCase__=0.1						,			UpperCamelCase__=0						,			UpperCamelCase__=2						,			UpperCamelCase__=3						,			UpperCamelCase__=True						,			**UpperCamelCase__						,			)  -> List[Any]:





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

           A_		   = vocab_size
           A_		   = hidden_size
           A_		   = num_hidden_layers
           A_		   = num_attention_heads
           A_		   = hidden_act
           A_		   = intermediate_size
           A_		   = hidden_dropout_prob
           A_		   = attention_probs_dropout_prob
           A_		   = max_position_embeddings
           A_		   = max_relative_position
           A_		   = type_vocab_size
           A_		   = initializer_range
           A_		   = layer_norm_eps
           A_		   = classifier_dropout
           A_		   = use_cache



'''simple docstring'''







from __future__ import annotations

from typing import Any
def  UpperCAmelCase__      ( UpperCAmelCase__			)     ->     int:
       if not postfix_notation:
              return 0

       A_		   = {"""+""", """-""", """*""", """/"""}
       A_		   = []

       for token in postfix_notation:
              if token in operations:
                     A_   ,     A_		   = stack.pop(), stack.pop()
                     if token == "+":
                            stack.append(a + b			)
                     elif token == "-":
                            stack.append(a - b			)
                     elif token == "*":
                            stack.append(a * b			)
                     else:
                            if a * b < 0 and a % b != 0:
                                   stack.append(a // b + 1			)
                            else:
                                   stack.append(a // b			)
              else:
                     stack.append(int(UpperCAmelCase__			)			)

       return stack.pop()


if __name__ == "__main__":
      import doctest

      doctest.testmod()
