

"""simple docstring"""





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


__UpperCamelCase  :      Dict							      =		logging.get_logger(__name__)

__UpperCamelCase  :      Optional[Any]							      =		{'''ctrl''': '''https://huggingface.co/ctrl/resolve/main/config.json'''}







class 				SCREAMING_SNAKE_CASE					(		_lowerCAmelCase       ):






					"""simple docstring"""



					lowercase__				 =       "ctrl"
					lowercase__				 =       ["past_key_values"]
					lowercase__				 =       {
					    "max_position_embeddings": "n_positions",
					    "hidden_size": "n_embd",
					    "num_attention_heads": "n_head",
					    "num_hidden_layers": "n_layer",
					}







					def __init__(       self			:				Union[str, Any]   ,lowercase_			:				List[str]=2_4_6_5_3_4   ,lowercase_			:				Dict=2_5_6   ,lowercase_			:				Dict=1_2_8_0   ,lowercase_			:				int=8_1_9_2   ,lowercase_			:				Optional[int]=4_8   ,lowercase_			:				Tuple=1_6   ,lowercase_			:				Tuple=0.1   ,lowercase_			:				Optional[Any]=0.1   ,lowercase_			:				Dict=1E-6   ,lowercase_			:				List[Any]=0.02   ,lowercase_			:				Tuple=True   ,**lowercase_			:				Union[str, Any]   ,):
						lowerCAmelCase__	:						Optional[int]  				=	vocab_size
						lowerCAmelCase__	:						List[Any]  				=	n_positions
						lowerCAmelCase__	:						Tuple  				=	n_embd
						lowerCAmelCase__	:						int  				=	n_layer
						lowerCAmelCase__	:						Any  				=	n_head
						lowerCAmelCase__	:						Union[str, Any]  				=	dff
						lowerCAmelCase__	:						int  				=	resid_pdrop
						lowerCAmelCase__	:						Optional[int]  				=	embd_pdrop
						lowerCAmelCase__	:						Union[str, Any]  				=	layer_norm_epsilon
						lowerCAmelCase__	:						str  				=	initializer_range

						lowerCAmelCase__	:						List[Any]  				=	use_cache

						super().__init__(**_lowerCamelCase		)












"""simple docstring"""


from __future__ import annotations

from typing import Any



def 					lowerCAmelCase				(    __UpperCamelCase ):




  """simple docstring"""







  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()




